免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 7829 | 回复: 11
打印 上一主题 下一主题

solaris下删除用户 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-06-02 10:01 |只看该作者 |倒序浏览
大家好

solaris偶用userdel用户后,没有报错。正常删除
在/etc/passwd下没有该用户了

但是su - 用户名还是可以切换过去,我用userdel再次删除提示用户名不存在。

论坛徽章:
0
2 [报告]
发表于 2008-06-02 10:13 |只看该作者

回复 #1 hyster_dct 的帖子

没人知道?
自己顶一下

论坛徽章:
0
3 [报告]
发表于 2008-06-02 10:40 |只看该作者
The only posibility is that you are using some sort of naming service such as nis, nis+ or ldap etc. Can you show me the result of:  grep passwd /etc/nsswitch.conf ?

论坛徽章:
0
4 [报告]
发表于 2008-06-02 10:42 |只看该作者
有可能是在ldap 上的用户吧???

论坛徽章:
0
5 [报告]
发表于 2008-06-02 11:15 |只看该作者
删除的时候加个 -r 的参数

论坛徽章:
0
6 [报告]
发表于 2008-06-02 11:39 |只看该作者
原帖由 briangao 于 2008-6-2 10:40 发表
The only posibility is that you are using some sort of naming service such as nis, nis+ or ldap etc. Can you show me the result of:  grep passwd /etc/nsswitch.conf ?



同意,很可能用了多种方法处理用户名,首选的/etc/passwd中用户被删除后,在nis or ldap上依然有该用户。所以可以su,但无法删除

论坛徽章:
0
7 [报告]
发表于 2008-06-02 13:00 |只看该作者

回复 #6 yuhuohu 的帖子

应该是nis的问题
# more nsswitch.nis |grep passwd
# the following two lines obviate the "+" entry in /etc/passwd and /etc/group.
passwd:     files nis

如何才能彻底的删除?

论坛徽章:
0
8 [报告]
发表于 2008-06-02 13:38 |只看该作者
去yp下make一下

论坛徽章:
0
9 [报告]
发表于 2008-06-02 14:35 |只看该作者

回复 #8 dingyilong 的帖子

make了,还是有个用户存在

论坛徽章:
0
10 [报告]
发表于 2008-06-02 20:52 |只看该作者
原帖由 hyster_dct 于 2008-6-2 13:00 发表
应该是nis的问题
# more nsswitch.nis |grep passwd
# the following two lines obviate the "+" entry in /etc/passwd and /etc/group.
passwd:     files nis

如何才能彻底的删除?



错了。。应该要看/etc/nsswitch.conf ,不是nsswitch.nis,.nis,.dns。。。之类的文件仅是模板文件,不起作用的

如果真是NIS,要去NIS SERVER上删除这个用户

或者。。如果你确信本机不需要使用NIS or 其他的东西解析系统登录帐号名的话,直接把nsswitch.conf中的passwd条目改成passwd:files即可,
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP