- 论坛徽章:
- 0
|
我想建立个文件服务器,在home目录建立pmc资料夹为pmc部门共用资料夹,但是
在debian中设定组用户可以进入共享的pmc目录,在freebsd下怎么不行?
以下是我在freebsd下的smb.conf内容:
[global]
workgroup = keshi
netbios name = FileServer
server string = 文件服务器
security = user
hosts allow = 192.168.0. 127.
load printers = yes
log file = /var/log/samba/log.%m
max log size = 5000
interfaces = 192.168.0.8/24
dns proxy = no
display charset = cp936
unix charset = cp936
dos charset = cpcp936
[homes]
comment = Home Directories
browseable = no
writable = yes
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
[pmc]
comment = PMC的资料
path = /home/pmc
public = no
valid users = @pmc
write list = @pmc
我用pw添加组用户pmc,并把pmc-a用户加入到pmc组中去,命令如下:
#pw groupadd pmc
#pw useradd pmc-a -g pmc -s /usr/bin/false
#smbpasswd -a pmc-a
并建立共享目录pmc,设定了权限,命令如下:
#mkdir /home/pmc
#chgrp pmc /home/pmc
#chmod 770 /home/pmc
#chmod g+s /home/pmc
察看pmc文件的权限如下:
fileserver# ls -ld /home/pmc
drwxrws--- 3 root pmc 512 9 1 22:06 /home/pmc
做完后访问我的samba服务器,提示输入密码,我输入samba用户pmc-a
登入进去后,再点开我的共享目录pmc,又提示输入密码,但输入任何密码
都无法进入,这是怎么回事呀。。。
在debian中也是这样做的就可以。。。
为什么。。。?
感觉freebsd下的samba组用户没有作用
我是不是哪步做错了。。。 |
|