码迷,mamicode.com
首页 > 其他好文 > 详细

samba

时间:2015-06-27 16:03:33      阅读:92      评论:0      收藏:0      [点我收藏+]

标签:

[原创]在Ubuntu中设置samba共享可读写文件夹[菜鸟写给菜鸟]

对照上文描述,我的相关脚本为:

sudo apt-get install samba
sudo apt-get install smbfs

我是把整个home给共享了,因此相对原文描述少了某些配置

security = user
username map = /etc/samba/smbusers
[Share]
comment = Shared Folder with username and password
path = /home/yingc
public = yes 
writable = yes 
valid users = yingc
create mask = 0700
directory mask = 0700
force user = yingc
force group = yingc
available = yes 
browseable = yes 
   workgroup = WORKGROUP
   display charset = cp936
   unix charset = UTF-8
   dos charset = cp936
sudo smbpasswd -a yingc
#这个我直接输入了我的虚拟机的登录用户名
sudo gedit /etc/samba/smbusers
#创建smbusers,输入以下内容:
yingc = "yingc"

#最后重启
sudo /etc/init.d/smbd restart

 

 

aa

samba

标签:

原文地址:http://www.cnblogs.com/jingzhishen/p/4603985.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!