|
发表于 2003-10-9 22:10:47
|
显示全部楼层
我 的一点问题:就是以注册用户登录98后,只有public目录能进去,其他所有目录都需要输入密码.但所有密码均无效.不知是很原因?换成root用户,也只是home的目录改变,,实际上仍无法进入.
而且在linux中用smbclient -L \\hostname访问时的显示:
Domain=[mygroup] os=[unix] server=[samba 2.2.1a]
sharename type comment
-------------- ------ -----------
homes disk Home Directories
resouce1 disk Html Folder
public disk
IPC$ IPC
ADMIN$ disk
Server Comment
---------- --------------
hostname samba 2.2.1a
Workgroup Master
---------- --------------
mygroup ?(有的时候有出现hostname,有的时候却没有,但目录可以访问)
有的时候还有出现其他工作组,但对于某个工作组下有多台主机时,往往只显示一台,有的时候什么都没有,不知是何原因?请各位帮忙看看下面的smb.conf有什么不足之处或累赘,还望指出!
smb.conf
[global]
workgroup = mygroup
netbios name = hostname
map to guest = Bad User
map to guest = Bad Password
guest account = nobody
local master = yes
admin users = root
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
browseable = yes
[homes]
comment = Home Directories
writable = yes
valid users = root
create mode = 0664
directory mode = 0775
[resource1]
comment = Html Folder
path = /home/html
writable = yes
valid users = root
[public]
path = /home/public
writable = yes
read only = yes
guest ok = yes |
|