|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
I did only visudo.
There are several entries for users with root priv and I inserted a new line after the last user. |
|
#4
|
|||
|
|||
|
Check the line closely for differences. If possible, post it literally.
|
| Sponsored Links | |
|
|
#5
|
|||
|
|||
|
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
|
||||
|
||||
|
Where do you see you have no password?
|
| Sponsored Links | |
|
|
#7
|
|||
|
|||
|
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 | ||
|
![]() |
| Thread Tools | Search this Thread |
| 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 |
|
|