One step closer to world domination
Sudo without a password in Mac OS X
Mac OS X users who spend a lot of time in Terminal may find having to enter their account passwords when using sudo to be inconvenient. A few simple steps can disable this and allow you to use sudo without ever needing a password in Mac OS X 10.5 Leopard. The steps are similar for 10.3 and 10.4 however /etc/sudoers may be slightly different.
Warning! Be aware that removing the password requirement to use sudo eliminates a level of security. If someone gains access to your account they will be able to easily escalate to root privileges.
First, edit /etc/sudoers and uncomment (remove the “#”)
# %wheel ALL=(ALL) NOPASSWD: ALL
Then, in Terminal run the following command as root, replacing your_username with your account username:
dscl . append /Groups/wheel GroupMembership your_username
| Print article | This entry was posted by Matt Danger on January 12, 2009 at 1:32 pm, and is filed under Mac OS X, terminal. Follow any responses to this post through RSS 2.0. Both comments and pings are currently closed. |
Comments are closed.










