[song]
comment = Work path
browseable = yes
path = /home2/songshuo/work
guest ok = no
writable = yes
create mask = 7777
directory mask = 777
available = yes
valid users = songshuo
[song_share_writable]
comment = Work path
browseable = yes
path = /home2/songshuo/share
guest ok = yes
writable = yes
create mask = 7777
directory mask = 777
available = yes
[song_share_readonly]
comment = Work path
browseable = yes
path = /home2/songshuo/work/share
guest ok = yes
writable = yes
create mask = 7777
directory mask = 777
available = yes
sudo smbpasswd -a songshuo
sudo service smbd restart