how to allow a user to manage the users?
hi all...i want to allow the user winny to manage users...
i have added the following lines to the visudo file. #user alias specification User_Alias LIMITEDTRUST = winny #command alias specification Cmnd_Alias MINUMUM = /usr/sbin/useradd, /usr/bin/passwd, /usr/sbin/groupadd, /usr/sbin/usermod, /usr/sbin/userdel #user privilege specification LIMITEDTRUST ALL=MINIMUM then i logged in as a user winny, and fire the following command #sudo username linus then it prompt me for a password, i dont know which password has to be given, i gave the user winny's password. I was told "sorry, try it again", then i gave the root user password. Same error was persist. when i fired the sudo username command second time it said useradd command not found. How to solve this issue? |
winny@somehost> sudo /usr/sbin/useradd <someparam> <...> new_user_login
and supply the passwd for winny. See http://linux.die.net/man/8/useradd |
hi there is a small problem in saving my visudo file?
Quote:
[root@kingston etc]# visudo Warning: undeclared Cmnd_Alias `MINIMUM' referenced near line 93 >>> sudoers file: syntax error, line 90 <<< Warning: undeclared Cmnd_Alias `MINIMUM' referenced near line 93 What now? e >>> sudoers file: syntax error, line 90 <<< Warning: undeclared Cmnd_Alias `MINIMUM' referenced near line 93 What now? But the line no 93 is emplty...i am little bit confusing.... |
Quote:
Evo2. |
i have tried this but actual error is on line this
LIMITEDTRUST ALL=MINIMUM undeclared Cmnd_Alias `MINIMUM' referenced near line i dont the actual syntax |
Its difficult to say, but
Quote:
|
i found error
which is in line of last command Cmnd_Alias MINIMUM =/usr/sbin/useradd, /usr/bin/passwd, /usr/sbin/groupadd, /usr/sbin/usermod, /usr/sbin/groupdel, usr/sbin/userdel this is the Error: , usr/sbin/userdel every thing is fine |
it screwed up me a lot...i simply reinstalled the sudo rpm...and configured again...as chrism told,
Quote:
|
ok sohail...thanks i got it now....
|
All times are GMT -5. The time now is 09:14 PM. |