1. 裝 Samba
sudo apt-get install samba
2. 新增 Samba user 並設定 account
sudo smbpasswd -a $USER
3. 修改 Samba 的設定,使得 Windows 可以訪問
sudo emacs /etc/samba/smb.conf
改成這樣:
[global]
# Let Samba share follow symbolic links
follow symlink = yes
wide symlinks = yes
unix extensions = no
[homes]
comment = Home Directories
browseable = no
valid users = %S
writable = yes
create mask = 0664
directory mask = 0775
4. 重啟 Samba server,使得新的設定生效
sudo /etc/init.d/samba restart
在較新版本的 Linux 中,可能要這樣
sudo restart smbd
5. 測試看看新建好的 Samba server
sudo testparm
No comments:
Post a Comment