增加samba用户提示Failed to add entry for user
来源:互联网 发布:数据库备份与灾难恢复 编辑:程序博客网 时间:2024/05/22 02:19
安装samba:sudo apt-get install samba
安装smbclient:sudo apt-get install
安装smbfs:sudo apt-get smbfs
2、修改配置文件
sudo gedit /etc/samba/smb.conf 编辑smb.conf 文件
将;security user修改为 security user,然后在配置文件末尾添加
[ShareFiles]
comment = Shared Folder require password
path = /home/magic/share
public = yes
writable = yes
valid users = magic
create mask = 0777
directory mask = 0777
force user = nobody
force group = nogroup
available = yes
browseable = yes
保存后重新启动samba,sudo /etc/init.d/samba restart
3、设置用户和密码
sudo smbpasswd -a magic 接着俺提示输入密码。
4、最后windows下网上邻居->右键->映射网络驱动器
输入 文件夹框 \\ip地址\ShareFiles,按提示输入用户名密码即可。
本篇文章来源于 Linux公社网站(www.linuxidc.com) 原文链接:http://www.linuxidc.com/Linux/2011-09/42621.htm
增加samba用户提示Failed to add entry for user
[root@ubuntu ~]# smbpasswd -a test
New SMB password:
Retype new SMB password:
Failed to add entry for user test.
解决办法:
这是因为没有加相应的系统账号,所以会提示Failed to add entry for user的错误,只需增加相应的系统账号test就可以了:
[root@ubuntu ~]# groupadd test -g 6000
[root@ubuntu ~]# useradd test -u 6000 -g 6000 -s /sbin/nologin -d /dev/null
这时就可以用smbpasswd -a test增加test这个samba账号了!为了增加系统的安全性,所以加的系统账号不要给shell它,也不给它指定目录,到时在/home目录给test账号建个文件夹,该文件夹只有test有读写权限即可!
如:
[root@ubuntu ~]# mkdir /home/test
[root@ubuntu ~]# chown -R test:test /home/test
若不想让另人访问,只让test用户可以访问,只需执行命令:
[root@ubuntu ~]# chmod u+rwx,g+rwx,o-rwx /home/test
这时可以用smbpasswd命令增加samba账号test了
[root@ubuntu ~]# smbpasswd -a test
New SMB password:
Retype new SMB password:
Added user test.
问题解决来自:http://hi.baidu.com/asxiaosi/item/5420d0f037bcff14fe35822e
- 增加samba用户提示Failed to add entry for user
- 增加samba用户提示Failed to add entry for user
- 增加samba用户提示Failed to add entry for user
- 增加samba用户提示Failed to add entry for user
- 增加samba用户提示Failed to add entry for user
- 增加samba用户提示Failed to add entry for user
- 增加samba用户提示Failed to add entry for user
- 增加samba用户提示Failed to add entry for user
- 使用samba时出现"Failed to find entry for user..."
- 用samba时出现"Failed to find entry for user..."
- [solve]Ubuntu login "Failed to add entry for user"
- Ubuntu14.04利用samba实现Linuxwindows共享出现Failed to add entry for user linux.问题的解决方案
- 使用脚本增加samba用户,smbpasswd -a user
- SMB fail to find the entry for user ....
- add samba user and related
- samba 提示Failed to initialize the registry: WERR_CAN_NOT_COMPLETE 无法启动
- Add user to sudoers
- add user to group
- SlopeOne推荐算法
- Android Design Support Library使用详解
- PAT(甲级)1083
- generator class有哪些
- newInstance传入String 数组 提示Wrong number of arguments
- 增加samba用户提示Failed to add entry for user
- 创建对象的几种模式
- 解决 – java.lang.OutOfMemoryError: unable to create new native thread
- java 日期格式化
- 【HTML】-案例-利用表格制作网页
- 餐饮管理系统中事件的使用
- SQLAlchemy操作MariaDB笔记之四
- System.exit(0)和System.exit(1)区别
- Notepad++使用