1826835 Members
3906 Online
109704 Solutions
New Discussion

Restricted su

 
Marcelo De Florio
Frequent Advisor

Restricted su

How can i restrict the su command (alone without -) ?

for eg: su joe

regards
MDF
2 REPLIES 2
James R. Ferguson
Acclaimed Contributor

Re: Restricted su

Hi:

Unless you (or someone) is root, 'su' prompts the user for a password. This password must be supplied from the terminal, and ALL attempts to use 'su' (successful or not) are logged in /var/adm/sulog.

...JRF...
Victor BERRIDGE
Honored Contributor

Re: Restricted su

the only way I can think of is using sudo that will let you define who can use su without - with root privilege except su root(=> no passwd required) and perhaps changing the perms on su if not enough