Solved

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

Posted on 2014-01-15
2
776 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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 (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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…
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.:

821 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