|
用samba2.0.6架设了samba服务器,设置为匿名访问的时候,可以连上去,但是设为用户验证方式的时候无法访问。
但是可以用smbclient -L 看到共享目录
匿名访问时的配置文件为:
[global]
workgroup = LNX
server string = Samba Server on NAS
netbios name = nas_server
security = share
[Public]
comment = Public Stuff
path = /tmp
public = yes
browseable = yes
writable = yes
guest ok = yes
非匿名时配置文件为
[global]
workgroup = LNX
server string = Samba Server on NAS
netbios name = nas_server
security = user
smb passwd file = /usr/local/samba/lib/smbpasswd
log file = /usr/local/samba/var/%U.log
[Public]
comment = Public Stuff
path = /tmp
public = yes
browseable = yes
writable = yes
guest ok = yes
windows XP这边就会弹出对话框说
//172.17.145.62 is not accesslible . You might not have permission to use this network resoucer .
但是这时用smbclient查看是能看到分享的目录
[root@localhost lib]# smbclient -L //172.17.145.62
Password:
Anonymous login successful
Sharename Type Comment
--------- ---- -------
Public Disk Public Stuff
IPC$ IPC IPC Service (Samba Server on NAS)
Anonymous login successful
Server Comment
--------- -------
NAS_SERVER Samba Server on NAS
Workgroup Master
--------- -------
LNX
Workgroup Master
--------- -------
想问下有没人配置过samba2.0.6的server,又用XP访问成功过,我不知道是我配置文件有问题还是因为2.0.6版本太低了,不能访问。 |
|