commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
I am new to linux, and I was trying to figure out why I could not sudo with my username in Fedora 10. This command, when run as root, will add a line to the sudoers file allowing the loginname supplied to sudo. The above line will require a password when you sudo, if you wish to sudo without password, use:
echo 'loginname ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
instead. you have to run this command as su, and this is just an easier way of using visudo, just adds it right from the terminal.
There are 4 alternatives - vote for the best!
If you can do better, submit your command here.
You must be signed in to comment.