Share your knowledge at the LQ Wiki.
Go Back > Forums > Other *NIX Forums > AIX
User Name
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.


  Search this Thread
Old 08-09-2005, 07:38 AM   #1
Registered: Aug 2005
Posts: 40

Rep: Reputation: 15

Hi everybody!

I am trying to use the sudo command like this:

sudo -u loopoo bash

and it always doesn't recognize my password.

Sorry, try again.
Sorry, try again.
Sorry, try again.
sudo: 3 incorrect password attempts

Anybody already encountered this?

I am using AIX 5.2

Old 08-09-2005, 08:02 AM   #2
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
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).
Old 08-09-2005, 08:20 AM   #3
Registered: Aug 2005
Posts: 40

Original Poster
Rep: Reputation: 15
Thanks, that was the problem.
Old 08-09-2005, 02:41 PM   #4
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914
Moved: This thread is more suitable in AIX, and has been moved accordingly to help your thread/question get the exposure it deserves.
Old 10-12-2005, 01:36 AM   #5
LQ Newbie
Registered: Oct 2005
Posts: 1

Rep: Reputation: 0
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
Old 10-12-2005, 02:07 AM   #6
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
Well, you should have seen a line like

root ALL=(ALL) ALL

The syntax of the line is
user machine=(effective user) commands
For example,
skyeye /usr/bin/nmap,/usr/bin/nessus

tells to allow the user "skyeye" to run "nmap" and "nessus" commands as user "kernighan" on the host "".

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)
kernighan ALL=(loopoo) NOPASSWD: ALL
This allows "kernighan" to run any command as "loopoo" without giving the password.

Last edited by SkyEye; 10-12-2005 at 02:09 AM.
Old 10-27-2005, 05:44 AM   #7
Registered: Apr 2005
Location: Bangalore
Distribution: Redhat, CentOS, AIX
Posts: 93

Rep: Reputation: 15
use "visudo" command and follow as SkyEye said.

/Rinish (rinishriju)
Old 01-30-2006, 10:16 AM   #8
Registered: Dec 2003
Location: Pasadena MD
Distribution: RedHat 9
Posts: 12

Rep: Reputation: 0
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!



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Restricting Editing in Sudo (Advanced Sudo Question) LinuxGeek Linux - Software 4 11-04-2006 03:20 PM
su and sudo muman Linux - Security 9 12-30-2004 10:55 AM
sudo pk21 Linux - Newbie 7 10-07-2003 07:53 AM
need help with sudo mla Linux - Software 4 10-02-2003 11:05 AM
sudo? nabil Linux - Security 1 02-12-2001 01:18 PM > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 09:31 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration