安裝samba指令 → sudo apt-get install samba (需連上網路)
設定samba
1. sudo vi /etc/samba/smb.conf
2. [global]
workgroup = WORKGROUP
security = user
encrypt passwords = yes
3. [website]
comment = web site program update (分享說明)
path = /home/www
browseable = yes
read only = no
create mask = 0775
directory mask = 0775
4. 測試設定檔是否有問題 → testparm
Load smb config file from /etc/samba/smb.conf
Processing section "[printers]"
Processing section "[print$]"
Processing section "[website]"
Loaded services file OK.
Server role: ROLE-STANDALONE
Press enter to see a dump of your service definitions
(出現以上訊息,應該就沒問題了)
5. 將分享的資料夾權限設為 chmod 775 /home/www
6. 重新啟動samba → sudo /etc/init.d/samba restart
7. 新增samba使用者 → sudo smbpasswd -a 帳號
設定samba
1. sudo vi /etc/samba/smb.conf
2. [global]
workgroup = WORKGROUP
security = user
encrypt passwords = yes
3. [website]
comment = web site program update (分享說明)
path = /home/www
browseable = yes
read only = no
create mask = 0775
directory mask = 0775
4. 測試設定檔是否有問題 → testparm
Load smb config file from /etc/samba/smb.conf
Processing section "[printers]"
Processing section "[print$]"
Processing section "[website]"
Loaded services file OK.
Server role: ROLE-STANDALONE
Press enter to see a dump of your service definitions
(出現以上訊息,應該就沒問題了)
5. 將分享的資料夾權限設為 chmod 775 /home/www
6. 重新啟動samba → sudo /etc/init.d/samba restart
7. 新增samba使用者 → sudo smbpasswd -a 帳號
留言
張貼留言