首页 > 代码库 > 在Ubuntu下的samba实现

在Ubuntu下的samba实现

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