免费注册 查看新帖 |

Chinaunix

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

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

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-06-02 10:01 |只看该作者 |倒序浏览
大家好\r\n\r\nsolaris偶用userdel用户后,没有报错。正常删除\r\n在/etc/passwd下没有该用户了\r\n\r\n但是su - 用户名还是可以切换过去,我用userdel再次删除提示用户名不存在。

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

回复 #1 hyster_dct 的帖子

没人知道?\r\n自己顶一下

论坛徽章:
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 13:00 |只看该作者

回复 #6 yuhuohu 的帖子

应该是nis的问题\r\n# more nsswitch.nis |grep passwd\r\n# the following two lines obviate the \"+\" entry in /etc/passwd and /etc/group.\r\npasswd:     files nis\r\n\r\n如何才能彻底的删除?

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

回复 #8 dingyilong 的帖子

make了,还是有个用户存在

论坛徽章:
0
8 [报告]
发表于 2008-06-02 21:13 |只看该作者
错了。。应该要看/etc/nsswitch.conf ,不是nsswitch.nis,.nis,.dns。。。之类的文件仅是模板文件,不起作用的
My bad, it was a type error. I meant /etc/nsswitch.conf. Thanks yuhuohu  for pointing it out.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP