[code]sudo apt-get install samba
[code]sudo apt-get install smbfs
[code]sudo useradd share sudo passwd share創建共享目錄並修改權限為所有人可讀寫執行
[code]mkdir /home/share/share sudo chmod 777 /home/share/share
[code]sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
[code]sudo gedit /etc/samba/smb.conf在smb.conf最後添加
[code][share] path = /home/share/share available = yes browsealbe = yes public = yes writable = yes
[code] sudo touch /etc/samba/smbpasswd sudo smbpasswd -a share
然後會要求你輸入samba帳戶的密碼
[如果沒有第四步,當你登錄時會提示 session setup failed: NT_STATUS_LOGON_FAILURE]
[code]sudo /etc/init.d/samba restart
[code]smbclient -L //localhost/share
[code]\\192.168.1.100\share輸入帳號share
以及密碼就可以使用共享目錄了