1834884 Members
2497 Online
110071 Solutions
New Discussion

Command SU

 
Leonardo Preciado
Occasional Contributor

Command SU

Hi.

I need to block the "su" command in hpux, so nobody is able to execute it

Any idea.

Thks.
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: Command SU

You could "rm" it or, perhaps "mv" it to a different name, known only to you.


Pete

Pete
James R. Ferguson
Acclaimed Contributor

Re: Command SU

Hi:

If restricting access to the root account is your goal, setup the 'SU_ROOT_GROUP' parameter in '/etc/default/security'. See the 'security(4)' manpages.

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: Command SU

Shalom,

It is also possible to block su access without disabling the command, by modifying the default pam configuration.

Some links with peripheral

information:http://technet2.microsoft.com/windowsserver/en/library/5df736af-382f-4a6e-b2be-e83ff84557171033.mspx


http://barney.gonzaga.edu/~awithers/integration/


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Juan M Leon
Trusted Contributor

Re: Command SU

Leonardo,

I like more James suggestions to edit your security file and limit your users to specific group (admins)
SU_ROOT_GROUP=admins

good luck
Leonardo Preciado
Occasional Contributor

Re: Command SU

Hi

my OS HP-UX 11.11 haven't archive /etc/default/security
Juan M Leon
Trusted Contributor

Re: Command SU

you can create the file although it doesnot exist.