samba 的配置

来源:互联网 发布:c语言碎纸片拼接技术 编辑:程序博客网 时间:2024/06/08 20:08

个人用到的samba服务器配置

其中用到了用户权限, 先向samba中添加 现有用户中的用户

sudo smbpasswd -a 用户名

然后输入密码



配置如下

#[share]#   comment = public folder#   path = /home/wonxing/Desktop#   writable = yes#   browseable = yes#   read only = no#   guest ok = yes#   public = yes[desktop]   comment = AA   path = /home/wonxing/Desktop   public = no   valid users = wonxing,@wonxing   write list = @wonxing   printable = no[BB]   comment = BB   path = /samba/B   public = no   valid users = a01,c01,b01,@B   printable = no   write list = @B[public-readonly]   comment = public-readonly   path = /samba/public-readonly   public = yes   read only = yes[share-rw]   comment = share-rw   path = /samba/share-rw   public = yes   writable = yes


原创粉丝点击