share permissions security issue

David Baker dbaker at getnetworked.com
Fri Mar 12 16:32:09 GMT 2004


I have Samba 2.2.8a on a Red Hat 8 box.  My smb.conf file is below.  I
have the PDC functionality working.  The login script works fine.  Each
user can create directories and files in their own folder and the public
folder.  What I need to be able to do is have a user create a directory
in the Public folder and then set specific permissions on that folder so
that some users will be able to read or write or whatever combination of
security options.  From what I read in the HOWTO documents this should
work.  However, when I create a folder and then try to add a user with
permissions of, let's say, read only and then try to save it, I get an
error that permission is denied.
 
Can anyone help?  Thanks a thousand-million.
 
David
 
 
 
 
 
###################################################################
# Global parameters

[global]

workgroup = DOMAIN

server string = rh1

encrypt passwords = Yes

max log size = 0

# time server = Yes

socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

domain admin group = root,dbaker

add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M
%u

logon script = login.bat

# logon path = \\%L\profiles\%U

logon home = \\%L\%U\.profile

domain logons = Yes

os level = 65

preferred master = Yes

domain master = Yes

dns proxy = No

printing = lprng

load printers = yes

printcap name = /etc/printcap

[netlogon]

comment = The domain logon service

path = /etc/samba

browseable = No

#[profiles]

# path = /profiles

# read only = No

# create mask = 0600

# directory mask = 0700

[public]

#### MUST CREATE /public DIRECTORY & RUN chmod 777 ON IT #### 

comment = Public

path = /public

read only = No

create mask = 0777

directory mask = 0777

[homes]

comment = Home Directories

valid users = %S

read only = No

create mask = 0664

directory mask = 0775

browseable = No



More information about the samba-technical mailing list