sudo
Hi everybody!
I am trying to use the sudo command like this: sudo -u loopoo bash and it always doesn't recognize my password. Password: Sorry, try again. Password: Sorry, try again. Password: Sorry, try again. sudo: 3 incorrect password attempts Anybody already encountered this? I am using AIX 5.2 Thanks, LooPoo |
Are you using loopoo's password or the user invoking sudo's password? You should be using the password for the user invoking sudo (not loopoo's).
|
Thanks, that was the problem.
|
Moved: This thread is more suitable in AIX, and has been moved accordingly to help your thread/question get the exposure it deserves.
|
example to add user to use sudo
will you please give me an example how to add a user in visudo ???
pls i want to learn but everytime i try new commands i use root passwd huhuhu |
Well, you should have seen a line like
root ALL=(ALL) ALL The syntax of the line is Code:
user machine=(effective user) commands skyeye sun.skyeye.net=(kernighan) /usr/bin/nmap,/usr/bin/nessus tells to allow the user "skyeye" to run "nmap" and "nessus" commands as user "kernighan" on the host "sun.skyeye.net". For more information, try Google Linux search and try this also. If you don't want to give the password everytime try this line with the appropriate information changes (such as usernames) Code:
kernighan ALL=(loopoo) NOPASSWD: ALL |
|
Please note that you need to be very careful with sudo and none-privileged users. If it possible for the user to edit or replace the executable/script being invoked, the user can run any arbitrary command as root. Be aware!
Peter |
All times are GMT -5. The time now is 11:09 AM. |