Networking Forums

Networking Forums > Computer Networking > Linux Networking > New files/directories having a specific group

Reply
Thread Tools Display Modes

New files/directories having a specific group

 
 
Alex
Guest
Posts: n/a

 
      09-18-2003, 04:31 PM
Hi folks,

I've created a new Samba share where only 'mis' group members have
access, but when someone creates a new file, Samba assigns that user's
group as the owner. How can I get Samba to set 'mis' as the group
owner for all files or directories created in the share?

Thanks,

Alex
 
Reply With Quote
 
 
 
 
m.marien
Guest
Posts: n/a

 
      09-18-2003, 06:38 PM

"Alex" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> Hi folks,
>
> I've created a new Samba share where only 'mis' group members have
> access, but when someone creates a new file, Samba assigns that user's
> group as the owner. How can I get Samba to set 'mis' as the group
> owner for all files or directories created in the share?
>

[share name]

force group = mis

> Thanks,
>
> Alex



 
Reply With Quote
 
Alex
Guest
Posts: n/a

 
      09-19-2003, 11:20 PM
"m.marien" <mm(at)RiverCityCanada(dot)com> wrote in message news:<(E-Mail Removed)>...
> "Alex" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed) om...
> > Hi folks,
> >
> > I've created a new Samba share where only 'mis' group members have
> > access, but when someone creates a new file, Samba assigns that user's
> > group as the owner. How can I get Samba to set 'mis' as the group
> > owner for all files or directories created in the share?
> >

> [share name]
>
> force group = mis


Hello.

Thanks for the info Worked great.

Alex.
 
Reply With Quote
 
Walter Mautner
Guest
Posts: n/a

 
      09-19-2003, 11:29 PM
Alex wrote:

> Hi folks,
>
> I've created a new Samba share where only 'mis' group members have
> access, but when someone creates a new file, Samba assigns that user's
> group as the owner. How can I get Samba to set 'mis' as the group
> owner for all files or directories created in the share?
>

The unix way is to set the sticky group bit on the main directory of that
share (like drwxrwsr-x).
 
Reply With Quote
 
ynotssor
Guest
Posts: n/a

 
      09-20-2003, 01:14 AM
"Walter Mautner" <(E-Mail Removed)> wrote in message
news:23gs31-(E-Mail Removed)

> The unix way is to set the sticky group bit on the main directory of
> that share (like drwxrwsr-x).


sgid != sticky bit. This is a very common error that seems to arise from the
fact that the word sticky starts with an "s". The sticky bit has nothing to
do with the set group id permission.

The sgid perm you have indicated above is invoked via "chmod g+s dirname",
and assigns the same group id of the dirname to all files created below that
directory, and as such is the correct answer to the OP's question, but it is
*not* called "the sticky bit."

A "sticky bit" is denoted by a "t" in the world execute field of a directory
permission, and is granted by a chmod +t dirname. See the output of "ls -l /
/var | grep tmp" for an example. This assigns ownership of any file created
in that directory to the user who created the file.

The sticky bit on a parent directory allows only the owner of the file
within that directory, the owner of the parent directory or the superuser to
modify or delete the file.


tony

--
use hotmail com for any email replies



-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
 
Reply With Quote
 
Walter Mautner
Guest
Posts: n/a

 
      09-21-2003, 07:50 AM
"ynotssor" <"ynotssor"> wrote:

> "Walter Mautner" <(E-Mail Removed)> wrote in message
> news:23gs31-(E-Mail Removed)
>
>> The unix way is to set the sticky group bit on the main directory of
>> that share (like drwxrwsr-x).

>
> sgid != sticky bit. This is a very common error that seems to arise
> from the fact that the word sticky starts with an "s". The sticky bit
> has nothing to do with the set group id permission.
>

Ah ... ok, just not native english speaker, I meant "sticky" is
applicable also for "group sticky" . Of course I know the "real"
sticky bit.
Thankx,
Greetings from Vienna
 
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
nfs cannot overwrite group writable files after 2.6.15 jrose@vanguardanimation.com Linux Networking 3 11-07-2006 08:53 PM
RSync: move 'deleted' files to a specific folder Vincent Lascaux Linux Networking 2 09-11-2006 12:59 PM
How to search through all the files in all the levels of your directories. dsaklad@zurich.csail.mit.edu Linux Networking 4 03-11-2005 12:34 PM
Unable to download deep files and directories recursively with mget -R command... ANTant@zimage.com Linux Networking 9 02-21-2005 07:35 AM
Finding out which directories have a specific group assigned to them. Coelho Windows Networking 1 12-22-2004 09:04 PM



1 2 3 4 5 6 7 8 9 10 11