1823311 Members
2939 Online
109653 Solutions
New Discussion юеВ

Re: SU Priveledges

 
SOLVED
Go to solution
Carlo Henrico_1
Regular Advisor

SU Priveledges

I have created a user called operator which automatically starts up a menu to perform certain tasks. However these tasks require an su to be performed in certain instances and in this case a password is required. What must I do to the operator profile so that it will not require a password when doing an su to another user?

Or is there another way to do this? I typically want to start and stop the Oracle database for example.

Thank you.
Live fast, die young - enjoy a good looking corpse!
6 REPLIES 6
MARTINACHE
Respected Contributor
Solution

Re: SU Priveledges

Try to look at the tool : sudo
Patrice MARTINACHE
MARTINACHE
Respected Contributor

Re: SU Priveledges

You can find at ftp://ftp.cs.colorado.edu/pub/sysadmin/sudo
Patrice MARTINACHE
Victor BERRIDGE
Honored Contributor

Re: SU Priveledges

You can dowload sudo from on eof the numerous HP porting and archive centers like:
http://hpux.csc.liv.ac.uk/

Good luck
James R. Ferguson
Acclaimed Contributor

Re: SU Priveledges

Carlo:

Unless you are root (in reality uid=0) then to 'su' to another user will always require an interactive prompt for the password.

The 'sudo' utility is one common, safe work-around. Another, dangerous, one is a set-uid script or C-program.

...JRF...
Carlo Henrico_1
Regular Advisor

Re: SU Priveledges

Patrice/Victor/James

Thanks a lot, this is super-cute!

Works like a bomb...
Live fast, die young - enjoy a good looking corpse!
Rick Garland
Honored Contributor

Re: SU Priveledges

As a word of caution, setup the sudoers file to limit who has access to the su rights.
By default, this is not done and anyone who is not specifically limited in this capability will have the access to the root.