sudo requires user password
Each time I begin a new terminal session with FC20 I have to enter my user password. Not a big deal, but annoying.
The entry in /etc/sudoers is "nall ALL=(ALL) ALL" with nall being my user name. |
replace that line with:
Code:
nall ALL=(ALL) NOPASSWD: ALL |
fedora normally dose NOT use "sudo"
it defaults to using "su" and "su -" to become root Quote:
once you login as your normal everyday user and you open a terminal you are ALREADY loged in AS that user you will have your name and location with " :~> " your HOME folder is "~" and the > means you are a NON root user Warning: ---- DO NOT do this !!!!! -- It is a very BAD IDEA!!!! ---- "ALL=(ALL) NOPASSWD: ALL" |
Quote:
|
Use visudo to edit the sudoers file. Locate the %wheel configuration and adjust it. Then make your user be a member of the wheel group.
sudo is installed by default with fedora, but isn't "forced" on you. |
@John VV: From the title and the fact that he knows about sudo, I presume he opens a root terminal directly, or simply used the wrong phrasing..
@yancek: Hmm.. nope.. that should happen if you open a terminal (emulator) as same already logged in user... @Doug: Giving "NOPASSWD:" to a single user is a bad and dangerous idea.. Giving it to a well known administrator group is an even worse one.. "wheel" might have sudo permissions but it should never have the "NOPASSWD:" option set.. |
Quote:
In Fedora the NOPASSWD: setting for %wheel is already provided in the distributed sudoers file but just commented out, waiting for you to change it to enable password-less sudo for wheel users. Apparently RedHat thinks it may be an often-used option. In my case it's not a bad or dangerous idea at all. |
The "NOPASSWD" option was what I needed, and solved the problem. My original post did not make it clear that I was saying that whenever I tried to use "sudo" that it required my user password, although I think it was implied by the title of the post.
Agree that it could be dangerous if not used properly, and once I have the FC20 system set up the way that I want it then I'll most likely revert back to requiring a password to use sudo. Thanks for all the help. John |
All times are GMT -5. The time now is 09:58 AM. |