Solved

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

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

758 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

25 Experts available now in Live!

Get 1:1 Help Now