How to run a progam as root while you’re not root

Login to your machine/server as root.

Type the below mentioned commands in your terminal.

cd [file name path]
chown root [filename]
chmod 755 [filename]
chmod +s [filename].

BE VERY CAREFULL !!! IT DOES HAVE SECURITY HAZZARDS

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.