LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices


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

Rep: Reputation: 15
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
 
Old 08-09-2005, 08:02 AM   #2
jtshaw
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
loopoo
Member
 
Registered: Aug 2005
Posts: 40

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

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
kernighan
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
SkyEye
Member
 
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
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.

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

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

/Rinish (rinishriju)
RHCE
 
Old 01-30-2006, 10:16 AM   #8
PeterT
Newbie
 
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!

Peter
 
  


Reply



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

LinuxQuestions.org > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 02:56 PM.

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