We are using NIS services for users login for Unix accounts. We have test machines where users themselves install OS and they get root access. Users are using su from root account to NIS user accounts without passwords they are able to enter other NIS accounts easily. Is there any way we can restrict this option? I don't want allow any root user to login other users nis account.
1 Answer
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 pam_rootok.so like this:
#auth sufficient pam_rootok.so after that su from root will ask for the user password.
- Thanks plinn but it has to modify in client end. I want control from NIS server end itself. since users has root access to client machines they can edit this entrysagar– sagar2016-06-08 16:02:28 +00:00Commented Jun 8, 2016 at 16:02
su-ing to a userid they shouldn't.