Advertisement

10.17.2007 at 09:53PM PDT, ID: 22900962
[x]
Attachment Details

Having problems with sudo on AIX 5.3

Asked by holmesrk in IBM AIX Unix, Unix Operating Systems

Tags: aix, sudo, allowed

I am having problems getting sudo running properly on an AIX 5.3 system. Here are the specifics of my install:

sudoers file located at /etc/sudoers

output of ls -al /etc/sudoers
-r--r-----   1 root     system          155 Oct 17 21:04 sudoers

contents of sudoers file:

/etc >cat sudoers
Defaults logfile=/var/log/sudolog

jkb     msoadvprod = NOPASSWD: /usr/bin/kill, /page/cmd/killusr
rkh     msoadvprod = NOPASSWD: /usr/bin/kill, /page/cmd/killusr

location of sudo binary:
/usr/local/bin

permission on sudo
---s--x--x   1 root     system       147460 Mar 11 2006  sudo

Here is the PATH statement in my /etc/environment file
PATH=/page/cmd:/met/sy/vics_cmd:/usr/java131/bin:/metbin:/met/sy/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/local/bin:/home/UPSHostAccess:/home/UPSHostAccess/test:/usr/local/sbin:.

Here is the PATH statement from my .profile file
PATH=:/met/sy/vics_cmd:/usr/java131/bin:/page/cmd:/metbin:/met/sy/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/bin:/usr/local:/met/sy/cmd:/u/cmd:/met/sy/cmd:/u/wp/bin:/u/wp/sbin:/page/cmd:/usr/bin:/usr/local/bin:.


When I try calling sudo like this:
$ sudo -u rkh /page/cmd/killusr lvv

The result is:
rkh is not allowed to run sudo on coloadv1.  This incident will be reported.

Any suggestions for me please?







Start Free Trial
[+][-]10.18.2007 at 12:19AM PDT, ID: 20099175

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: IBM AIX Unix, Unix Operating Systems
Tags: aix, sudo, allowed
Sign Up Now!
Solution Provided By: ozo
Participating Experts: 2
Solution Grade: A
 
 
[+][-]10.18.2007 at 12:31AM PDT, ID: 20099212

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628