[Samba] Problem Mappig Groups to shares
William Marques
wmarques at vmlinuz.com.br
Fri Aug 26 22:46:59 GMT 2005
Hi list,
I have a problem here that's make me insane...
I have to make a share only available to persons in a group, it means
that the directory have to be 0770 permission o Linux, right?
Here is my situation:
I use samba with LDAP, and everithing is working fine.
With smbldap-tools, I created the group and with <net groupmap list>
I see that it maps rigth to Unix Group:
grupoteste (S-1-5-21-980314579-3254781846-1046201792-3071) -> grupoteste
I putt all the people who should have acces to the share inside the
group, as I can see with smbldap-groupshow grupoteste:
dn: cn=grupoteste,ou=Groups,dc=feam,dc=br
objectClass: posixGroup,sambaGroupMapping
cn: grupoteste
gidNumber: 1035
memberUid: william,lvlira
sambaSID: S-1-5-21-980314579-3254781846-1046201792-3071
sambaGroupType: 2
displayName: grupoteste
description: Local Unix group
with getent group grupoteste I have:
grupoteste:x:1035:william,lvlira
The share:
ls -ald /home/pasta-teste
drwxrwx--- 2 root grupoteste 4096 Ago 26 18:10 /home/pasta-teste/
In smb.conf:
[global]
workgroup = HOSPITAL
netbios name = FEAM001
server string = Servidor FEAM
encrypt passwords = Yes
update encrypted = Yes
security = user
# unix password sync = Yes
os level = 255
log level = 1
time server = yes
#time offset = 60
passwd program = /usr/local/sbin/smbldap-passwd -u %U
passwd chat = "Mudando a senha para*\nNew password*" %n\n "*Digite
novamente a senha*" %n\n"
min passwd length = 6
ldap passwd sync = yes
passdb backend = ldapsam:ldap://127.0.0.1/
ldap admin dn = cn=Manager,dc=feam,dc=br
ldap suffix = dc=feam,dc=br
ldap group suffix = ou=Groups
ldap user suffix = ou=Users
ldap machine suffix = ou=Computers
ldap ssl = no
logon home =
logon path =
log file = /var/log/samba/samba-all.log
max log size = 0
name resolve order = wins lmhosts host bcast
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
oplocks = yes
veto oplock files =
/*.idx/*.ind/*.IDX/*.IND/*.db/*.DB/*.mdb/*.MDB/*.px/*.PX/*.seq/*.SEQ/*.int/*.INT/
read raw = yes
write raw = yes
max xmit = 65535
dead time = 15
getwd cache = yes
logon script = %U.bat
domain logons = Yes
preferred master = Yes
domain master = Yes
dns proxy = No
wins support = Yes
printing = lprng
preserve case = No
short preserve case = No
unix charset = UTF8
display charset = UTF8
dos charset = cp850
[pastateste]
comment = teste
path = /home/pasta-teste
create mask = 0770
force create mode = 0770
preserve case = yes
I have also tried put in the share:
valid users = +grupotest
But the same error occours:
I Can't open the share using samba...
In logs:
chdir (/home/pasta-teste) failed
Any clues about that?
Regards,
--
William Henrique Siqueira Marques
wmarques at vmlinuz.com.br
_______________________________________________________
Yahoo! Acesso Grátis - Internet rápida e grátis.
Instale o discador agora! http://br.acesso.yahoo.com/
More information about the samba
mailing list