LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   AIX (https://www.linuxquestions.org/questions/aix-43/)
-   -   sudo (https://www.linuxquestions.org/questions/aix-43/sudo-351474/)

loopoo 08-09-2005 07:38 AM

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

jtshaw 08-09-2005 08:02 AM

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).

loopoo 08-09-2005 08:20 AM

Thanks, that was the problem.

Tinkster 08-09-2005 02:41 PM

Moved: This thread is more suitable in AIX, and has been moved accordingly to help your thread/question get the exposure it deserves.

kernighan 10-12-2005 01:36 AM

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

SkyEye 10-12-2005 02:07 AM

Well, you should have seen a line like

root ALL=(ALL) ALL

The syntax of the line is
Code:

user machine=(effective user) commands
For example,
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
This allows "kernighan" to run any command as "loopoo" without giving the password.

Rinish 10-27-2005 05:44 AM

use "visudo" command and follow as SkyEye said.

/Rinish (rinishriju)
RHCE

PeterT 01-30-2006 10:16 AM

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 04:43 PM.