Solved

How to setup super user on AIX? User cannot kill other users processes...

Posted on 2014-01-15
2
758 Views
Last Modified: 2014-01-15
Hello, I need to setup a super user on AIX 5.3. We are using a third party application that uses the AIX as a back office. The application uses lots of shell commands e.g. I can Administer users; Terminate, kill, snoop etc.

Now I have a problem with the kill command.
I have setup a user on AIX as an admin user but it looks like the user cannot kill other users processes..

The kill -9 returns error number 2.

Can you advise on what I have missed?

To do any changes on AIX I can use only ssh and vi. so I need some more detail instructions.

I will appreciate your help in this matter.
Thank you in advance.
0
Comment
Question by:RafalKa
2 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 39781975
"Admin User" on AIX just means that only root is allowed to change any attributes of this account. Users which are members of the "security" group can change only user accounts which do not bear the "admin flag".

So the admin status has nothing to do with privileges.

To acquire root privileges a normal user must use "su" or "sudo".

"su", if issued by a non-root user requires entering the password of the target userid. "sudo" is configurable in a way that selected users can issue selected or all commands on behalf or "root" or another user, if so configured. "sudo" uses a configuration file "/etc/sudoers" and an editing tool "visudo" for this.

"sudo" is not part of AIX, you must install it from the AIX toolbox CD which came with the OS media, or you must download it form here:

http://www.oss4aix.org/download/RPMS/sudo/sudo-1.7.10p7-1.aix5.1.ppc.rpm

Please note that sudo requires zlib, which you can get here:
http://www.oss4aix.org/download/RPMS/zlib/zlib-1.2.8-1.aix5.1.ppc.rpm

Once you downloaded both RPM packages "cd" to the directory where you put them in and run

rpm -ivh zlib-1.2.8-1.aix5.1.ppc.rpm

and

rpm -ivh sudo-1.7.10p7-1.aix5.1.ppc.rpm

Once these tools are installed learn how to use sudo, the sudoers file and visudo here:

sudo: http://www.sudo.ws/sudo/sudo.man.html
sudoers: http://www.sudo.ws/sudo/sudoers.man.html
visudo: http://www.sudo.ws/sudo/visudo.man.html

Should you have further questions how to implement and use "sudo" please let me know.

wmp
0
 

Author Comment

by:RafalKa
ID: 39782077
Thank you very much. It works.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
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…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

910 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

22 Experts available now in Live!

Get 1:1 Help Now