分享給別人:
1.安裝smbd服務
$ sudo apt-get install smbfs2.修改設定檔(範例)
$ vim /etc/samba/smb.conf
[share] comment = share folder path = /path/to/share browseable = yes read only = no # allow read/write3.新增使用者
$ sudo smbpasswd -a [username]4.重新啟動服務即可
$ sudo smbd restart
若要修改不同runlevel的啟動情形,先安裝sysv-rc-conf
$ sudo apt-get install sysv-rc-conf要在runlevel 5自動啟動smbd服務
$ sudo sysv-rc-conf
service 1 2 3 4 5 0 6 S ---------------------------------------------------------------------------- smbd [ ] [ ] [ ] [ ] [X] [ ] [ ] [ ]
存取別人的分享:
1.以GNOME為例
Places->Connect to Server...2.選擇分享類型
Server Type: Windows share
Server: /ip/to/server
Folder: /name/of/share
User Name: /name/of/user
Domain Name: WORKGROUP # if connect to Windows
有關samba的常見參數設定可參考31.5. Configuration of the /etc/smb.conf file
沒有留言:
張貼留言