安装samba,sudo apt-get install samba
修改配置文件,sudo gedit/etc/samba/smb.conf,我先备份该文件,然后清空该文件内的所有内容,用如下替换(允许向linux用户的计算机中拷贝文件read only=no,反之为只读):
[global]
log file = /var/log/samba/log.%m
workgroup = MSHOME
wins support = no
security = user
[tmp]
comment = Temporary file space
path = "共享目录"
read only = no
public = yes
添加samba用户,并从起samba
sudo smbpasswd -a <username>
sudo /etc/init.d/samba restart
没有评论:
发表评论