红联Linux门户
Linux帮助
当前位置: 红联Linux门户 > Ubuntu

Ubuntu配置Samba,与Windows共享文件

发布时间:2007-12-24 00:43:07来源:红联作者:ntsiase
编辑Samba配置文件

root@Varrily:~# gedit /etc/samba/smb.conf

如无特殊要求,直接替换成这样就可以了
[global]
workgroup = WORKGROUP
display charset = UTF-8
unix charset = UTF-8
dos charset = cp936
server string = %h Server (Samba, Ubuntu)
security = share

[share]
comment = Shared Folder with username and password
path = /root/share
writeable = yes
browseable = yes
guest ok = yes

创建/root/share,设置Guest权限。

root@Varrily:~# id nobody
uid=65534(nobody) gid=65534(nogroup) 组=65534(nogroup)

在我这里都是65534

root@Varrily:~# chown -R 65534:65534 /root/share

就这么简单搞定。
文章评论

共有 0 条评论