|
发表于 2005-11-7 08:23:05
|
显示全部楼层
I had this problem before and thus know exactly what's wrong.
You are doing on wrong side: the setting should be on CLIENT side, not on SERVER side. You want to block the NIS user from logging on to your CLIENT machine, not on to your SERVER machine, so you should do the authentication on the CLIENT side.
On server side, if you don't want to a user to be enabled as NIS user, just remove this user and update your map (userdel; /var/yp/make)
ON CLIENT side,
1. first add file /etc/security/asd to include nisuser that you don't want to login.
2. in system-auth,
account required pam_listfile.so item=user sense=deny file=/etc/security/asd
onerr=fail
If you are using allow instead of deny, make sure you don't deny the root and local user on the client side:
account sufficient pam_listfile.so item=user sense=allow file=/path/to/nisuser
onerr=fail
account sufficient pam_localuser.so |
|