Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Bad Idea! Use SUDO instead' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Bad Idea! Use SUDO instead
Authored by: SOX on Jul 25, '02 02:38:46PM

yes that works but you should geet out of the habit.
use command sudo instead. sudo has two major advantages
first it is temporary and your priviledges will time out if you dont use them, which is plus for security. not to mention avoiding disasterously stupid mistakes (real sys admins know they should avoid being root except when required for just this reason.)
second it records your actions in a logfile. you can go back later and see what you did to yourself!
sudo is also polite in that it wont keep asking you for your password after the first occurence within the timeout period.
if you want to enter sudo mode but for longer than a single command then try
sudo su
or
sudo tsch



[ Reply to This | # ]
Bad Idea! Use SUDO instead
Authored by: Steff-X on Jul 25, '02 06:01:20PM

Just a precision with sudo: you cannot use sudo if your account is not listed in the sudoers file, which is the case for non-admin accounts. In this case, first use su to login as an admin user (admin users are listed in the sudoers file), then you can use sudo.



[ Reply to This | # ]