win10访问samba共享出问题:
参考以下:
http://jingyan.baidu.com/article/c146541382b6950bfcfc4ca5.html
[root@node1 samba]# tree /home/share/
/home/share/
├── doc
│ └── test.txt
└── software
<<smb.conf>>
其中doc需要用户名密码,而其他的不需要.
设置步骤
1.创建用户
useradd sale1 -s /sbin/nologin -M
useradd sale2 -s /sbin/nologin -M
smbpasswd -a sale1
smbpasswd -a sale2
2.修改配置
[root@node1 samba]# cat smb.conf
[global]
workgroup = WORKGROUP
server string = linux file share
security = user
passdb backend = smbpasswd
smb passwd file = /etc/samba/smbpasswd
[Software]
comment = public
path = /home/share/software
public = yes
writable = yes
read only = no
guest ok = yes
browseable = yes
[doc]
comment = private
path = /home/share/doc
public = no
writable = yes
read only = no
browseable = yes
valid users = sale1
3.访问测试.