Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using the asroot command

Status
Not open for further replies.

abovebrd

IS-IT--Management
May 9, 2000
690
US
I am tring to get the asroot command to work with the kill command. I want userx to have the ability to execute the kill command from a shell script. I added the kill command to /tcb/files/rootcms and created a symbolic link to the actual kill command. Now I am not sure what I should do next ? Do I need to change the system authorizations for userx ? If so what should they be to execute this command.

The asroot man page seems to leave out a little detail !

Any ideas
 
Danny,

Are you sure you're looking at the correct man page? It looks pretty informative to me. Sounds like you only need to edit the authorisations file (/etc/auth/system/authorize) and add a new authorisation called 'kill'. You may also want to consider the file permissions issues mentioned, especially with reference to symbolically linking rather than copying the file to 'rootcmds'.

Once you've created the authorisation, go into 'scoadmin account' and add the authorisation to the relevant user.

Note that this would allow any user with the 'kill' authorisation to kill _any_ process. It might be an idea to make the authorisation only allow them to run the script you're writing instead.

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top