How to restrict su from root-to-nis-clients in Linux

Yes, there is a way to restrict this behaviour. This behaviour of su is governed by the PAM module (Plugable Authentication Module):
You must edit /etc/pam.d/su
comment the line :
auth       sufficient
like this:
#auth       sufficient
after that su from root will ask for the user password.

Click to rate this post!
[Total: 0 Average: 0]

Share and Enjoy !

Get Weekly KBV Tips !

Learn and improve day to day Knowledge & lifestyles.