求教NIS的配置问题
我的Linux(redhat9)加入了单位的NIS系统,但是我不想让NIS中的某些用户登陆我的电脑,
请问各位高手,我该如何修改配置呀? Try this:
Add the user name to the /etc/shadow before the line begin with "+".Enter something into the password field.It will override the password from nis.However, make the /etc/nsswitch.conf file like this:
passwd: files nis
shadow: files nis
group: files nis
As a result the user will not able to log on to your system because incorrect password. Right, yours is the better way. :wink:
你的方法也可以
只要将nsswitch.conf 中的passwd file nis
改为
passwd file nis compat
那么任何NIS的用户都无法登录了,
然后在文件passwd中加入你想允许的用户就可以了,比如
加入一行
+twain::::::
就可以让twain登录了
页:
[1]