Software engineering notes

Samba

安裝

sudo apt-get install samba

關閉

$ sudo service smbd stop
smbd stop/waiting

開啟

$ sudo service smbd start
smbd start/running, process 15892

重新啟動

$ sudo service smbd restart
smbd stop/waiting
smbd start/running, process 7782

查看目前狀態

$ sudo service smbd status
smbd start/running, process 9395

設定 /etc/samba/smb.conf : (append到最下面)

[share]                     <= 這個samba位置的名字, 變更時URL也會變
   path = /home/test/share   <= 自已指定放置網芳的位置
   public = yes
   writable = yes
   printable = no
   #only guest = yes
   #guest ok = yes

連線

windows連進samba輸入\\{IP/Domain name}\share :

ex: \\192.168.74.65\share)

注意!! 資料夾權限

因為public = yes,所以每個人都可以丟東西進來,傳上來會是nobody:nogroup

所以samba的資料夾權限一定要設定都可寫

chmod a+w /samba資料夾