Shared Directories Permission on Linux 2.2 running Samba Server 2.0.7
sandro at suffert.com
sandro at suffert.com
Fri Jan 12 19:27:34 GMT 2001
I'm using Samba to have Linux resources - directories mapping at most - on Windows (95/98/NT/2K) Machines, but I'm facing a problem between Samba and Linux permissions.
I'm running a preexec script to authenticate the user externaly and add the valid samba user to the resource's group on UNIX, but the user only gets permission to the directory if the directory has permission to "others" (chmod xx7).
This is my samba.conf file, thanks in advance for any help.
==
# Samba config file created using SWAT
# from localhost (127.0.0.1)
# Date: 2001/01/11 18:56:47
# Global parameters
[global]
workgroup = BBINT
netbios name = LABLINUX
server string = Samba Server 2.0.7
security = DOMAIN
encrypt passwords = Yes
password server = bbsrv45
debug level = 10
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
add user script = /usr/sbin/adduser -s /bin/false %U
dns proxy = No
guest account =
create mask = 0770
directory mask = 0770
[homes]
comment = Home Directories
writeable = Yes
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[publico]
path = /tmp
guest ok = Yes
[teste]
comment = Compartilhamento de Teste
path = /tmp
writeable = Yes
create mask = 0775
force create mode = 0775
directory mask = 0775
force directory mode = 0775
preexec close = Yes
root preexec = /cleberson/cleberson.sh %U %u %S %m %P %a %T
[impressora]
path = /tmp
[cleberson]
comment = Sharing do /home/cleberson
path = /home/cleberson
writeable = Yes
create mask = 0744
directory mask = 0775
inherit permissions = Yes
root preexec = /usr/local/bin/preexec.sh W010 %u %S %m %P %a %T
root postexec = /usr/local/bin/postexec.sh %u %S
[sandro]
comment = Compartilhamento de /home/sandro/
path = /home/sandro/
writeable = Yes
create mask = 0744
directory mask = 0775
inherit permissions = Yes
root preexec = /usr/local/bin/preexec.sh W010 %u %S %m %P %a %T
root postexec = /usr/local/bin/postexec.sh %u %S
[eduardo]
comment = mapeamento do eduardo
path = /home/eduardo
writeable = Yes
create mask = 0775
directory mask = 0755
inherit permissions = Yes
root preexec = /usr/local/bin/preexec.sh W011 %u %S %m %P %a %T
root postexec = /usr/local/bin/postexec.sh %u %S
[governo]
comment = Governo
path = /home/httpd/html/governo
writeable = Yes
create mask = 0775
[ Sandro Süffert - sandro at suffert.com ]
[ ICQ: 7610585 www.suffert.com ]
More information about the samba
mailing list