Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2014-01-15
2
Medium Priority
?
832 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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 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…
Suggested Courses

636 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