Having problems with sudo on AIX 5.3

Posted on 2007-10-17
Last Modified: 2013-11-17
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:

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

Here is the PATH statement in my /etc/environment file

Here is the PATH statement from my .profile file

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?

Question by:holmesrk
    LVL 84

    Accepted Solution

    rkh     coloadv1 = NOPASSWD: /usr/bin/kill, /page/cmd/killusr
    LVL 48

    Assisted Solution

    You are calling sudo to run the command as the rkh user.  You should be using the format

    sudo /page/cmd/killusr lw

    As ozo's says, correct the host it can run on, or make it more generic, ie:

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

    Note that you can list the sudo commands you have privs for by doing

    sudo -l

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
    I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now