samba安装配置
2019-01-26 本文已影响0人
小小爱笑
安装samba:
sudo apt-get install samba
修改配置文件
vi /etc/samba/smb.conf
在配置文件的最末尾加上:
[mnt]
path = /mnt
browsable =yes
writable = yes
guest ok = yes
read only = no
valid users = gen
public = yes
availabel = yes
保存后重新启动samba:sudo /etc/init.d/samba restart
设置用户和密码
sudo smbpasswd -a gen