2016年4月3日 星期日

Ubuntu安裝SAMBA Server

1. 利用apt-get安裝samba server套件
$ sudo apt-get install samba
2. 修改samba的config,加入要分享的資料
$ sudo vi /etc/samba/smb.conf

[allen]
comment = Allen
browseable = yes
path = /home/allen
guest ok = no
writable = yes
create mask = 0664
3. 設定samba帳號密碼
$ sudo smbpasswd -a allen
New SMB password:
Retype new SMB password:
4. 呼叫script,重新啟動samba
$ sudo /etc/init.d/smbd restart
5. 檢查samba是否啟動
$ netstat -na | grep LIST | grep samba
unix  2      [ ACC ]     STREAM     LISTENING     9140     /var/run/samba/unexpected

沒有留言:

張貼留言