赞
踩
sudo apt-get install samba
mkdir /home/user/share
// 由于Windows下的文件夹需可读可写可执行,需更改权限为777
sudo chmod 777 /home/user/share
sudo vim /etc/samba/smb.conf
[share]
path = /home/user/share
public = yes
writable = yes
valid users = user
create mask = 0644
force create mode = 0644
directory mask = 0755
force directory mode = 0755
available = yes
sudo touch /etc/samba/smbpasswd
sudo smbpasswd -a user
提示连续输入两次密码后,成功完成密码设置
sudo /etc/init.d/smbd restart
成功完成文件共享
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。