一、linux文件夹映射到windows**
安装samba
yum install -y samba
将root用户添加到samba中
smbpasswd -a root
设置selinux:(或者关闭selinux)
chcon -t samba_share_t /home/work/ -R
修改配置文件
etc/samba/smb.conf
增加
[work]
comment = work
path =/home/work/
valid users = @root
read list = @root
write list = root
public = no
printable = no
重启服务
service smb restart
在windows下网络右键选择”映射网络驱动器”
异常问题1:smbpasswd: error while loading shared libraries: libavahi-common.so.3: cannot open shared object fil
解决:从网上下载对应的文件放到指定路径下
标签:samba,映射,selinux,work,window,Linux,home From: https://www.cnblogs.com/mumianhuasayyes/p/16855381.html