重啟後便會失效。
因此修改 /etc/init.d/samba
vi /etc/init.d/samba
找到[homes] 下方,新增二筆[HDD-disk] [USB-disk]
===========================
[homes]
comment = Home Directories
browsable = no
read only = no
create mode = 0750
[HDD-disk]
path = /userdisk/data
read only = no
guest ok = yes
create mask = 0777
directory mask = 0777
browseable = yes
force user = root
[USB-disk]
path = /extdisks/
read only = no
guest ok = yes
create mask = 0777
directory mask = 0777
browseable = yes
force user = root
=============================
重啟Samba
/etc/init.d/samba restart
沒有留言:
張貼留言