Samba, Group add at creation

Samba, Group add at creation

Post by Jerr » Thu, 27 Jan 2005 10:24:15



   I have a Samba directory share that the intent is to have all Users in
the Group be able to read / write all files.
   When a User creates a file, the same User is created as the Group, and
not as the Group name.
   Hence if Joe creates a new file, the Group = Joe and not sch_office

Directory:
/var/local/samba/School_Office   set at 770
   User = root read / write / list
   Group = sch_office   read / write / list

Samba Share:
[School_Office]

        path = /var/local/samba-shares/School_Office
        force group = sch_office
        comment = Type - 5

        create mode = 770
        directory mode = 770

Samba Global:   (Some lines deleted that are not nessasary to the question)
[global]
        map to guest = bad user
        encrypt passwords = yes
        dns proxy = no
        netbios name = server
        writeable = yes
        server string = Samba
        wide links = no
        workgroup = OURSAVIOR
        os level = 65
        security = user

--
Jerry Perkins
Home site http://www.jperkins.us/

 
 
 

1. Samba Group Creation Comment

Note: if responding, remove the "-nospam" from my address

Hi,

Just wanted to make a comment on Samba's choice of UNIX group
creation on files and directories.

After having tried every option in my smb.conf I could find to get Samba

to create files and directories with the user's (creator's)  UNIX group,
I found
that there is no way to specify this (or I couldn't find it).

This is what is figured out.  When Samba creates a new file or
directory,
is uses the UNIX group of the directory that the new file or directory
is
created in.  So, if you want it to create files or directories with a
certain
UNIX group, go into UNIX and change the parent director's group
ownership.  ("chgrp  -R  new_group  directory_path" work well to change
them all.)

This is also not in any documentation I could find.

--Tony
aewell at sierra dot net

2. Rock Ridge Extensions

3. Adding root to groups in /etc/group - why?

4. iMac X config

5. adding group members to group.org_dir

6. tcsh-6.00.01 is now available

7. AIX: mkuser commands adds primary group to secondary groups

8. Xterm - on the edge.

9. Add Groups to Groups

10. Grouping PCs into different groups using Samba

11. Dnews group creation question

12. default group for file creation

13. Groups Creation