免费注册 查看新帖 |

Chinaunix

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

难道真的有没人碰到并解决的吗??等待着...... [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-02-27 18:45 |只看该作者 |倒序浏览
linux7下使用命令useradd或adduser添加用户时出现以下错误提示:
useradd:unable to lock password file

pwunconv提示:can't lock passwd file

用户权限为root
passwd和shadow文件属性为640 试过改为744结果一样.

ps -ef |grep passwd
也没有发现相关进程.

IFree不为0

什么原因?如何解决,请大家帮帮忙!!

论坛徽章:
0
2 [报告]
发表于 2004-02-27 20:03 |只看该作者

难道真的有没人碰到并解决的吗??等待着......

原帖由 "gzywll" 发表:
linux7下使用命令useradd或adduser添加用户时出现以下错误提示:
useradd:unable to lock password file

pwunconv提示:can't lock passwd file

用户权限为root
passwd和shadow文件属性为640

ps -ef |..........


ooooooooooooooooooooooooops~~~~~~~~

i have similar pb like urs when i was trying to change my passwd  file.etc/passwd needs to be locked to access it(means that it should not be used by anybody else(or any other process)).Maybe you are familiar with the locks in /var/.So I ask you whether you were changing the password through the network or anything else was using it?
You can't use 640 coz if some user other than root try to access it he will be denied.
You can try 744 normally as it would not compromise your security.
if ur pb existing either that usually this lock file in /etc/ptmp.check it out and see if that file exists and is old.if someone else is making changes on ur system.u just have to wait and try again and u shoud get in~
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP