« Crossdomain.xml files in Rails projects | Main | Installing Coldfusion and JRun on OS X »

Adding a user to sudoers file

On Linux you'll need to add your user account to the sudoers file so you can run certain tasks as a superuser (sudo, su). Here's an easy way:

Log in with your user account (not as root):
[martine@machine ~]# sudo
Password:
[root@machine martine]# chmod +w /etc/sudoers
[root@machine martine]# echo 'martine ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
[root@machine martine]# chmod -w /etc/sudoers

Save This Page    

Comments

Thank you for this Mac! I was planning on doing this today, so I can stop logging in as root.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)