|
|
用SMB(samba-3.0.26a.tar.gz)用作文件服务器时候出现,用户目录可以访问,用户组不可以访问,请求大虾指点。
smb.conf配置文件:
[finance]
path = /home/finance
comment = this's dept.finance share directory
valid users = @finance
write list = @finance
writeable = yes
create mask = 0770
directory mask =0770
添加用户组及两个用户:
groupadd finance
for user in rose angel
do
useradd -g finance -d /dev/null $user
smbpasswd -a $user
done
组目录的权限:
[root@RHEL5 home]# ls -ld /home/finance/
drwxrws--- 3 root finance 4096 09-23 23:24 /home/finance/
本地测试出现如下错误:
[root@RHEL5 home]# smbclient //localhost/finance -U rose
Password:
Domain=[RHEL5] OS=[Unix] Server=[Samba 3.0.26a]
Receiving SMB: Server stopped responding
tree connect failed: Call returned zero bytes (EOF)
[root@RHEL5 home]# testparm
Load smb config files from /usr/local/samba/lib/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[finance]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
Server role: ROLE_STANDALONE这个是什么错误吗?
如果把配置文件改成下面的就可以。以前都用RHEL4+samba-3.0.25b.tar.gz作文件服务器,没有这种问题!
[finance]
path = /home/finance
comment = this's dept.finance share directory
valid users = angel rose
write list = angel rose
writeable = yes
create mask = 0770
directory mask =0770
[root@RHEL5 home]# smbclient //localhost/finance -U rose
Password:
Domain=[RHEL5] OS=[Unix] Server=[Samba 3.0.26a]
smb: \> |
|