Networking Forums

Networking Forums > Computer Networking > Linux Networking > Ownership of newly created objects?

Reply
Thread Tools Display Modes

Ownership of newly created objects?

 
 
arabub
Guest
Posts: n/a

 
      05-20-2004, 02:41 AM
How do I configure Samba so that any new object created in a
particular Samba share always ends up with a particular group
ownership?

Example:
- I have a share /home/my_project

- Directory 'contracts' inside the share, and ownership:
# ls -l /home/my_project
drwxrwx--- 2 someuser mygroup 4096 May 11 01:48 contracts

- User 'joe' is has default group 'users', and is member of the group
'mygroup'.

- A new file 'new_file' is created by user 'joe' inside the
my_projects,
folder, and ends up with the following permissions:
# ls -l /home/my_project/contracts
-rwxr-xr-x 1 joe users 529 May 12 04:08 new_file

NOTE: the ownership and permissions on the file that 'joe' created
are
those that 'joe's' user/group and umask dictate.

- The relevant part of smb.conf is:
[my_project]
path = /home/my_project
force group = mygroup
create mask = 0660
directory mask = 0770

What am I doing wrong?

Thanks,
--Ulf
 
Reply With Quote
 
 
 
 
Cameron Kerr
Guest
Posts: n/a

 
      05-21-2004, 06:57 AM
In comp.os.linux.networking arabub <(E-Mail Removed)> wrote:
> How do I configure Samba so that any new object created in a
> particular Samba share always ends up with a particular group
> ownership?


> # ls -l /home/my_project
> drwxrwx--- 2 someuser mygroup 4096 May 11 01:48 contracts


An easy way is to make the directory SetGID mygroup, which means that
any new object in that group will get the group membership of the group
of the directory.

but 'force group' ought to work as well, I would think.

--
Cameron Kerr
(E-Mail Removed) : http://nzgeeks.org/cameron/
Empowered by Perl!
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
International names on network and Windows objects Sumyunggai Windows Networking 0 06-08-2006 08:25 PM
Internal VPN Clients Can Still See Domain Objects After Disconnect Lee Windows Networking 1 09-08-2005 02:18 AM
Find where objects are assigned permissions? - Windows Networking 2 07-28-2004 09:19 AM
Security on multiple user objects Paul Richardson Windows Networking 1 02-02-2004 06:45 PM
NFS issues: errors when reading newly-created files James Kilton Linux Networking 0 09-29-2003 04:54 PM



1 2 3 4 5 6 7 8 9 10 11