[问题]samba 无法实现匿名共享

为当前最终发行版之前的所有版本提供支持
回复
nfa
帖子: 6
注册时间: 2007-06-09 9:36
送出感谢: 0
接收感谢: 0
联系:

[问题]samba 无法实现匿名共享

#1

帖子 nfa » 2007-07-16 11:45

我配置了 samba ,想把/home/user/myshare 设置成匿名共享,
我的smb.conf 如下
[global]
netbios name = neil-pc
server string = %h server (Samba, Ubuntu)
socket options = TCP_NODELAY
security = SHARE
path = /home
public=yes
guest ok = Yes
workgroup = WORKGOURP
null passwords = yes
encrypt passwords = yes
max log size = 50

[netlogon]
writable = no
locking = No
path = /etc/samba/netlogon
guest ok = yes
comment = Logon Services in the Network
public = no
share modes = No
browsable = no

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = No
printable = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
guest ok = No

[homes]
browseable = no
writeable = yes

[myfile]
comment=neil file
path = /home/user/myshare
public = yes
browsable = yes
guest ok= yes
read only=no
create mode = 0755
directory mode = 0755

按照上面的 配置,我重起samba后,在windows机器访问这个目录的时候能看到目录,但是点击目录后显示拒绝访问,这所为什么啊?
我用testparm 结果显示
[global]
workgroup = WORKGOURP
server string = %h server (Samba, Ubuntu)
security = SHARE
null passwords = Yes
max log size = 50
path = /home
guest ok = Yes

[netlogon]
comment = Logon Services in the Network
path = /etc/samba/netlogon
guest ok = No
browseable = No
locking = No
share modes = No

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = No
printable = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
guest ok = No

[homes]
read only = No
browseable = No

[myfile]
comment = neil file
path = /home/neil/myshare
read only = No
create mask = 0755

这跟我的smb.conf 好像不完全一样。哪位高手指点一下阿,这个samba配置真是复杂阿.
回复

回到 “老旧版本支持”