共享只读公共文件夹(无授权)
来自Ubuntu中文
共享只读公共文件夹(无授权)
sudo mkdir /home/public sudo chmod 777 /home/public/ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup sudo gedit /etc/samba/smb.conf
- 搜寻这一行文字
... ; security = user ...
- 用下面这一行取代
security = share
- 将下列几行新增到文件的最后面
[public] comment = Public Folder path = /home/public public = yes writable = no create mask = 0777 directory mask = 0777 force user = nobody force group = nogroup
- 保存编辑过的文件 (范例)
- 请参阅 如何 新增/编辑/移除 网络使用者的帐号?
sudo testparm sudo /etc/init.d/samba restart