- 论坛徽章:
- 0
|
虚拟机上面的linux 配置samba ,上面测试共享没问题,smbclient -L //localhost 可以看到设置的共享目录。在windows上面运行,输入//ip 也可以看到目录共享名,就是双击 打不开,默认是 share 方式共享,共享设置里面valid users= %s windows打开文件就是 “提示目录无法访问,可能没有网络权限”,这个是属于smb配置文件的问题吗?然后将共享设置为 security = user ,共享设置里面 valid users= test linux用的账号,直接在windows运行\\IP 访问弹出密码登陆框,可是用户就是guest ,输不输入密码,都是登陆不了。
哪位高手可以帮忙分析下啦,感谢了。。。
[testdir]
comment=test directories
path=/home/test
writeable=yes
browseable=yes
valid users=%s // 或者替换为指定用户
public=yes
testparm 如下
[root@pplive-wuhan-18-74 /]# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[testdir]"
Processing section "[public]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
dos charset = cp936
unix charset = utf8
display charset = utf8
workgroup = MSHOME
netbios name = CLARK'S SAMBA SERVER
server string = ClarkLi 's Samba Server Version %v
security = SHARE
passdb backend = tdbsam
log file = /var/log/samba/%m.log
hosts allow = 127., 192.168.18.
cups options = raw
[homes]
comment = Home Directories
read only = No
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[testdir]
comment = test directories
path = /home/test
valid users = %s
read only = No
guest ok = Yes |
|