?
Solved

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

Posted on 2014-01-15
2
Medium Priority
?
812 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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.:
Suggested Courses
Course of the Month15 days, 5 hours left to enroll

771 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