Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-14-2012
Registered User
 
Join Date: Mar 2012
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Cannot make sudoers change work

I logged in as root and visudo'd /etc/sudoers.
I found several users with the username ALL=(ALL) ALL entries and added an account after the last one.
Saved the file.
When the user logs in and does "sudo su -" they are prompted for their password and then told they are not in the sudoers file.
Is there another step to "activate" the change?
Sponsored Links
    #2  
Old 03-14-2012
Mead Rotor
 
Join Date: Aug 2005
Location: Saskatchewan
Posts: 16,371
Thanks: 490
Thanked 2,534 Times in 2,417 Posts
There's not another step, no, if you edited the file properly. It sort of sounds like you did, but there's also hints you didn't; you don't visudo /etc/sudoers, just visudo... Did you use visudo, or did you vi /etc/sudoers? visudo should run by itself, without any filename arguments.
Sponsored Links
    #3  
Old 03-14-2012
Registered User
 
Join Date: Mar 2012
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
I did only visudo.
There are several entries for users with root priv and I inserted a new line after the last user.
    #4  
Old 03-14-2012
Mead Rotor
 
Join Date: Aug 2005
Location: Saskatchewan
Posts: 16,371
Thanks: 490
Thanked 2,534 Times in 2,417 Posts
Check the line closely for differences. If possible, post it literally.
Sponsored Links
    #5  
Old 03-15-2012
Registered User
 
Join Date: Mar 2012
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Here is the section from /etc/sudoers where I added newuser

##
root ALL=(ALL) ALL
user1 ALL=(ALL) ALL
user2 ALL=(ALL) ALL
user3 ALL=(ALL) ALL
user4 ALL=(ALL) ALL
newuser ALL=(ALL) ALL

##
Sponsored Links
    #6  
Old 03-15-2012
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Location: Switzerland - GE
Posts: 4,633
Thanks: 118
Thanked 256 Times in 245 Posts
Where do you see you have no password?
Sponsored Links
    #7  
Old 03-15-2012
Registered User
 
Join Date: Mar 2012
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
I logged in as root and did visudo
Then I logged out of root and logged in as newuser
Here is the screen:

[newuser@zwork ~]$ sudo su -
[sudo] password for newuser:
newuser is not in the sudoers file. This incident will be reported.
[newuser@zwork ~]$
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
my make doesn't work Puntino UNIX for Dummies Questions & Answers 0 06-21-2008 01:33 PM
how to make this work rider29 Shell Programming and Scripting 1 06-05-2008 01:22 PM
how to make ksh to work on solaries mail2sant Shell Programming and Scripting 13 04-16-2008 02:13 AM
How to make this work heru_90 Shell Programming and Scripting 3 09-06-2006 11:04 PM
How to make sccs work akrathi UNIX for Dummies Questions & Answers 1 10-21-2005 03:44 PM



All times are GMT -4. The time now is 11:20 PM.