LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 09-03-2014, 11:47 AM   #1
moonmoth
Member
 
Registered: Nov 2004
Location: Tallahassee, FL
Distribution: Fedora Core 15
Posts: 95

Rep: Reputation: 17
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.
 
Old 09-03-2014, 12:26 PM   #2
Smokey_justme
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 534

Rep: Reputation: 203Reputation: 203Reputation: 203
replace that line with:

Code:
nall ALL=(ALL) NOPASSWD: ALL
However, be careful what you run afterwards.. Scripts can than SUDO without you ever knowing..
 
Old 09-03-2014, 04:13 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
fedora normally dose NOT use "sudo"
it defaults to using
"su" and "su -" to become root

Quote:
Each time I begin a new terminal session with FC20 I have to enter my user password
that is NOT !!! normal

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"

Last edited by John VV; 09-03-2014 at 04:14 PM.
 
Old 09-03-2014, 04:36 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
Each time I begin a new terminal session with FC20 I have to enter my user password.
If you mean opening a terminal and run some command(s) then closing the terminal and opening another terminal, yes that's the way it works. Doesn't matter if you are using sudo or su. I don't really see why it would be a problem, don't close the terminal until you've done all that you want. Maybe I'm not reading your post correctly?
 
Old 09-03-2014, 06:49 PM   #5
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
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.
 
Old 09-03-2014, 08:52 PM   #6
Smokey_justme
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 534

Rep: Reputation: 203Reputation: 203Reputation: 203
@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..
 
Old 09-05-2014, 10:33 PM   #7
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
Quote:
@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..
Depends on how and where you use your computer. It's not always a bad idea to do something in a different way.

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.
 
Old 09-13-2014, 08:02 AM   #8
moonmoth
Member
 
Registered: Nov 2004
Location: Tallahassee, FL
Distribution: Fedora Core 15
Posts: 95

Original Poster
Rep: Reputation: 17
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sudo non-user/non-root password Alex_Dc Linux - Security 3 02-19-2010 06:28 PM
openSuse 11.1 beta 5 requires preinstall user & password JIMR122783 SUSE / openSUSE 3 11-29-2008 05:59 PM
sudo requires current user's password robogymnast Linux - General 5 08-04-2008 08:14 AM
Slackware's Single User Mode requires root password too? StevenO Slackware 2 01-25-2006 08:28 PM
Running a script as root with sudo without entering the user password kloss Linux - General 8 10-10-2005 11:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 09:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration