List of AIX commands that can be run by ROOT user ONLY


 
Thread Tools Search this Thread
Operating Systems AIX List of AIX commands that can be run by ROOT user ONLY
# 1  
Old 03-19-2013
List of AIX commands that can be run by ROOT user ONLY

Hello,

I am testing sudo and I want to test it. Can anyone please let me know few commands (of course other than shutdown, reboot etc. as I can't reboot the box) on AIX that can be run by ROOT only.

Thanks

---------- Post updated at 07:43 PM ---------- Previous update was at 07:38 PM ----------

Never I mind i prepared one-line script to which i assigned 700 permission and owner to root and It solved my purpose.

However I'm still interested to know few commands that can be run only by root. (In solaris, "format" command can be run only by root).
# 2  
Old 03-19-2013
Isn't that a bit like asking who can drive my car?

It depends on who you have given the keys too, or if you are out and left the keys at home, or work, who knows which drawer you keep them in, and who has access to your home or office...

Who can, or has, changed the permissions on any file or directory...

Who has access to the system and what permissions they might have to enable then to gain access...

The list is endless depending on your configuration...

If you are asking from a default AIX install perspective then it will probably also depend on the exact level, what is installed, who or what has access via various different methods - Tivoli Access Manager, HMC commands via RMC, Etc.

I don't think you'll ever find a definitive list.

HTH
# 3  
Old 03-19-2013
Am/was NOT asking for definite list. Asking for 1 or 2 standard AIX commands that can be run by ROOT only (on default AIX configuration). To make your job easier I gave an example of such command on Solaris as well.

one example of such command from you would have helped me more than Your 10 lines.
# 4  
Old 03-19-2013
I am not familiar with AIX, but perhaps you could search for all executables that are owned by root and for which only root has executable permission:
Code:
find /sbin /usr/sbin -user root -perm -100 ! -perm -010 ! -perm -001

I used two directories (/sbin, /usr/sbin) which (at least on systems that I've used) typically include system daemons and utilities.

Regards,
Alister

Last edited by alister; 03-20-2013 at 12:01 AM.. Reason: forgot the dash before 001
# 5  
Old 03-20-2013
installp requires root when not using RBAC.

Why not use RBAC? I have written a number of blogs on that. use a search engine with keyword SecuringAIX if you are interested in a second approach.
# 6  
Old 03-21-2013
Quote:
Originally Posted by prvnrk
Asking for 1 or 2 standard AIX commands that can be run by ROOT only (on default AIX configuration).
Instead of asking us you could have easily used "find" (which is executable by everybody) to search for files owned by "root" which have the owners x-bit set and the x-bits for group and world unset. Do this on the most likely directory ("/usr") and you end up with a more or less definitive list for your system.

If you are interested in only one example you could - to save time while making the list even less definitive - have started in "/usr/sbin", because most statically linked binaries are for use by root and root alone.

To come up with such a 1-second-of-thinking approach should be easy enough for an expert like you who is proficient in so many UNIX-dialects, hm?

Quote:
Originally Posted by prvnrk
one example of such command from you would have helped me more than Your 10 lines.
Even one example would have been misleading because of the reasons dukessd explained so patiently to you. Probably he had the same solution like mine in mind and was trying to find out what kept you from using such an obvious approach.

In general, if you don't like our problem-solving skills and can do better without us - do so! Most of us have enough to do to not get bored all day long even without having to provide obvious solutions to others problems.

I hope this helps.

bakunin
These 2 Users Gave Thanks to bakunin For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to run commands as root user

Hello I have a script which is working fine so far to generate HTML file. Now i am wondering how do i include a syntax where it can change itself to root user and execute a specific commands as root user. Please help, Thanks in advance. -Siddhesh (2 Replies)
Discussion started by: Siddheshk
2 Replies

2. AIX

track commands run as root after sudo

I'm looking for a way to track commands that are run as root after a user runs sudo su - root. I have a profile set up for root that will track the commands by userid but if we change the shell it only stores it in that shells history file. (2 Replies)
Discussion started by: toor13
2 Replies

3. Shell Programming and Scripting

How to restrict root user from running some commands

is it possible that we can restrict the root user if he runs some commands?? e.g i want if root runs command 'rm etc/passwd', he shoudn't be able to run command and throws error :confused: (3 Replies)
Discussion started by: sheelsadan
3 Replies

4. SuSE

Allow multiple users to run several root commands

I am using SUSE Linux Enterprise Server 10 SP2 (i586) and I had earlier ammended my sudoers file to allow users to become root user with "sudo su - " command Now I am trying to add multiple users to the sudoers file to run several commands such as restarting the server, restarting the nagios... (9 Replies)
Discussion started by: hedkandi
9 Replies

5. Shell Programming and Scripting

Need to run a bash script that logs on as a non-root user and runs script as root

So I have a script that runs as a non-root user, lets say the username is 'xymon' . This script needs to log on to a remote system as a non-root user also and call up a bash script that runs another bash script as root. in short: user xymon on system A needs to run a file as root user and have... (2 Replies)
Discussion started by: damang111
2 Replies

6. UNIX for Dummies Questions & Answers

How to allow access to some commands having root privleges to be run bu non root user

hi i am new to unix and i have abig task. i have to \run particular commands having root privileges from a non root user. i know sudo is one of the way but i need sum other approach kindly help Thanks (5 Replies)
Discussion started by: suryashikha
5 Replies

7. AIX

Crontab cannot run by non-root user

Good morning everybody. I have just receiedv a complaint from our DBA saying that if he create a scripts to run some Oracle performance scripts using crontab and the scheduling part is ok but the job is failed when I checked on /var/adm/cron/log. I have tried his scripts using Oracle id directly... (4 Replies)
Discussion started by: kwliew999
4 Replies

8. Shell Programming and Scripting

How a normal user run a script including root privileaged commands

Dear all Ihave written a script in Hpux9.0, the ecript is working fine if I run it from root command prompt But when I am running it thru /etc/profile or /user/.profile and login as a normal user, the owner of the process running the script is the normal user & hence cant run a root privileaged... (7 Replies)
Discussion started by: initin
7 Replies

9. HP-UX

user commands without root access

Hi I have been asked to find out how to 1) create users 2) reset passwords 3) kill processes that may require root privileges without having root password, sudo rights or rights to passwd command Any ideas? Thanks in advance (1 Reply)
Discussion started by: emealogistics
1 Replies

10. UNIX for Advanced & Expert Users

Capture of all commands issued by the user “root”

I have to write a script (not C based) that allows to capture of all commands issued by the user “root”. First, I tried to monitor the .bash_history but the commands are written in chunk after the .bash_history is closed. How can I capture the commands in Real-Time without waiting root to... (4 Replies)
Discussion started by: elieifrah@gmail
4 Replies
Login or Register to Ask a Question

Featured Tech Videos