免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4110 | 回复: 4

[服务应用] smb添加用户失败 [复制链接]

论坛徽章:
0
发表于 2012-08-08 09:28 |显示全部楼层
本帖最后由 mengchr 于 2012-08-08 09:31 编辑

[root@server-1]# smbpasswd -a zhou01
New SMB password:
Retype new SMB password:
do_file_lock: failed to lock file.
startsmbfilepwent_internal: unable to lock file /etc/samba/smbpasswd. Error was 被中断的系统调用
add_smbfilepwd_entry: unable to open file.
Failed to add entry for user zhou01.
Failed to modify password entry for user zhou01
[root@server-1]#

=================隔了几分钟自己好了???
到底是什么原因没找到,麻烦有类似情况,或者明白的前辈指点

论坛徽章:
0
发表于 2012-08-15 21:48 |显示全部楼层
也很想知道,希望有大牛能够解惑。怎么感觉是给文件上锁失败,难道还有其它的程序或其它的用户正在使用(写)文件/etc/samba/smbpasswd

论坛徽章:
0
发表于 2012-08-20 18:42 |显示全部楼层
什么情况,还真没遇到过!顶!

论坛徽章:
0
发表于 2012-08-20 19:41 |显示全部楼层

论坛徽章:
0
发表于 2014-02-10 10:26 |显示全部楼层
回复 1# mengchr 又出现了
奇怪啊


[root@serv]# /usr/local/samba/bin/smbpasswd w
New SMB password:
Retype new SMB password:
do_file_lock: failed to lock file.
mod_smbfilepwd_entry: unable to lock file /etc/samba/smbpasswd
smbpasswd_update_sam_account: mod_smbfilepwd_entry failed!
Failed to modify entry for user w.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP