apt-get install samba libpam-smbpass
然后编辑vi /etc/samba/smb.conf
增加
[djyk]
guest
ok=no
browseable=no
path=/home/djyk
writable=yes
valid
users=djyk
挂载samba是
mount -t cifs -o username=djyk,password=123 //10.96.81.203/djyk-mp3 /home/djyk/mp3
在Ubuntu下的samba实现,布布扣,bubuko.com
原文地址:http://www.cnblogs.com/firadio/p/3715697.html