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.
Posted by: Chris | April 9, 2008 08:17 AM