Re: [Samba] 'inherit owner' doesn't play nice with 'force directory mode'

2009-08-20 Thread Harry Jede
On Dienstag, 18. August 2009 wrote jw: Hello I am trying to create a 'dropbox' share, using the sticky bit and 'inherit owner'. By themselves they work, but when a directory is created in this share, its permissions are not quite what I need. Therefore, I try to use 'force directory mode'

Re: [Samba] 'inherit owner' doesn't play nice with 'force directory mode'

2009-08-20 Thread jw
On Wed, Aug 19, 2009 at 11:05 PM, Harry Jedewalk2...@arcor.de wrote: On Dienstag, 18. August 2009 wrote jw: Is this correct behavior, or a bug? You should try posix acls. Read the man pages: getfacl setfacl acl or search this list archiv. Look for default acl. I have not used ACLs much,

Re: [Samba] 'inherit owner' doesn't play nice with 'force directory mode'

2009-08-19 Thread Charles Marcus
On 8/18/2009, jw (jwde...@gmail.com) wrote: directory mask = 0775 The reason you're not getting 775 perms on the new directory is that the default directory mask is 0755, which masks out the write permission for the group. Just setting inherit owner, and directory mask = 0775 should be

Re: [Samba] 'inherit owner' doesn't play nice with 'force directory mode'

2009-08-19 Thread jw
On Wed, Aug 19, 2009 at 3:22 AM, Charles Marcuscmar...@media-brokers.com wrote: ? He said 0775, not 7775 Well, I need the sticky bit set (see my previous reply). So I have tried 1775, 3775, and 7775, all with the same results. If I use 0775, the sticky bit is masked out, which will not work

Re: [Samba] 'inherit owner' doesn't play nice with 'force directory mode'

2009-08-19 Thread Dale Schroeder
John, The following quote comes from the SWAT description of the inherit permissions parameter. From the way it is written, it seems quite plausible that it also applies to inherit owner. inherit permissions (S) Note that the setuid bit is /never/ set via inheritance (the code

Re: [Samba] 'inherit owner' doesn't play nice with 'force directory mode'

2009-08-19 Thread Jeremy Allison
On Tue, Aug 18, 2009 at 08:09:00PM -0700, jw wrote: On Tue, Aug 18, 2009 at 3:11 PM, Jeremy Allisonj...@samba.org wrote: To allow these to apply to the new directory, set : directory mask = 0775 The reason you're not getting 775 perms on the new directory is that the default directory

Re: [Samba] 'inherit owner' doesn't play nice with 'force directory mode'

2009-08-19 Thread Jeremy Allison
On Tue, Aug 18, 2009 at 08:09:00PM -0700, jw wrote: On Tue, Aug 18, 2009 at 3:11 PM, Jeremy Allisonj...@samba.org wrote: To allow these to apply to the new directory, set : directory mask = 0775 The reason you're not getting 775 perms on the new directory is that the default directory

Re: [Samba] 'inherit owner' doesn't play nice with 'force directory mode'

2009-08-19 Thread jw
On Wed, Aug 19, 2009 at 10:35 AM, Dale Schroederd...@briannassaladdressing.com wrote: John, The following quote comes from the SWAT description of the inherit permissions parameter. From the way it is written, it seems quite plausible that it also applies to inherit owner. inherit

Re: [Samba] 'inherit owner' doesn't play nice with 'force directory mode'

2009-08-19 Thread jw
On Wed, Aug 19, 2009 at 11:20 AM, Jeremy Allisonj...@samba.org wrote: Ok, this works with 3.4.0. You need to set:        inherit owner = yes        inherit permissions = yes        directory mask = 07775 Isn't that one too many characters in the mask? Regardless, I tried 07775 (as

Re: [Samba] 'inherit owner' doesn't play nice with 'force directory mode'

2009-08-19 Thread jw
On Wed, Aug 19, 2009 at 1:02 PM, jwjwde...@gmail.com wrote: What I am interested in is the sticky bit - getting that inherited. The docs only mention the sticky bit with regard to permissions. Whoops - that should read with regard to *printer* permissions -John -- To unsubscribe from this

Re: [Samba] 'inherit owner' doesn't play nice with 'force directory mode'

2009-08-19 Thread Jeremy Allison
On Wed, Aug 19, 2009 at 01:29:51PM -0700, jw wrote: On Wed, Aug 19, 2009 at 11:20 AM, Jeremy Allisonj...@samba.org wrote: Ok, this works with 3.4.0. You need to set:        inherit owner = yes        inherit permissions = yes        directory mask = 07775 Isn't that one too many

Re: [Samba] 'inherit owner' doesn't play nice with 'force directory mode'

2009-08-19 Thread jw
On Wed, Aug 19, 2009 at 1:35 PM, Jeremy Allisonj...@samba.org wrote: On Wed, Aug 19, 2009 at 01:29:51PM -0700, jw wrote: On Wed, Aug 19, 2009 at 11:20 AM, Jeremy Allisonj...@samba.org wrote: Would you mind showing me your full config for your working case, and the directory permissions /

Re: [Samba] 'inherit owner' doesn't play nice with 'force directory mode'

2009-08-19 Thread Jeremy Allison
On Wed, Aug 19, 2009 at 01:41:51PM -0700, jw wrote: On Wed, Aug 19, 2009 at 1:35 PM, Jeremy Allisonj...@samba.org wrote: On Wed, Aug 19, 2009 at 01:29:51PM -0700, jw wrote: On Wed, Aug 19, 2009 at 11:20 AM, Jeremy Allisonj...@samba.org wrote: Would you mind showing me your full config for

Re: [Samba] 'inherit owner' doesn't play nice with 'force directory mode'

2009-08-19 Thread jw
On Wed, Aug 19, 2009 at 1:44 PM, Jeremy Allisonj...@samba.org wrote: Well I'm creating the directory with a logged in user of jra, who is in the eng group. I don't think the setting of the guest account has anything to do with it as I'm not logging in as guest at all. Hmm.. Well I switched

Re: [Samba] 'inherit owner' doesn't play nice with 'force directory mode'

2009-08-19 Thread Jeremy Allison
On Wed, Aug 19, 2009 at 02:16:54PM -0700, jw wrote: On Wed, Aug 19, 2009 at 1:44 PM, Jeremy Allisonj...@samba.org wrote: Well I'm creating the directory with a logged in user of jra, who is in the eng group. I don't think the setting of the guest account has anything to do with it as

Re: [Samba] 'inherit owner' doesn't play nice with 'force directory mode'

2009-08-19 Thread jw
On Wed, Aug 19, 2009 at 2:53 PM, Jeremy Allisonj...@samba.org wrote: Not happening on my system. The inherit owner works as specified. What OS are you running? I have tried on a second FreeBSD-7.2 system, with never-before-installed samba 3.2, and it does not work there either. -John -- To

Re: [Samba] 'inherit owner' doesn't play nice with 'force directory mode'

2009-08-19 Thread Jeremy Allison
On Wed, Aug 19, 2009 at 07:55:45PM -0700, jw wrote: On Wed, Aug 19, 2009 at 2:53 PM, Jeremy Allisonj...@samba.org wrote: Not happening on my system. The inherit owner works as specified. What OS are you running? I have tried on a second FreeBSD-7.2 system, with

Re: [Samba] 'inherit owner' doesn't play nice with 'force directory mode'

2009-08-18 Thread Liutauras Adomaitis
On Tue, Aug 18, 2009 at 8:48 AM, jwjwde...@gmail.com wrote: Hello I am trying to create a 'dropbox' share, using the sticky bit and 'inherit owner'. By themselves they work, but when a directory is created in this share, its permissions are not quite what I need. Therefore, I try to use

Re: [Samba] 'inherit owner' doesn't play nice with 'force directory mode'

2009-08-18 Thread Jeremy Allison
On Mon, Aug 17, 2009 at 10:48:04PM -0700, jw wrote: Hello I am trying to create a 'dropbox' share, using the sticky bit and 'inherit owner'. By themselves they work, but when a directory is created in this share, its permissions are not quite what I need. Therefore, I try to use 'force

Re: [Samba] 'inherit owner' doesn't play nice with 'force directory mode'

2009-08-18 Thread jw
On Tue, Aug 18, 2009 at 3:11 PM, Jeremy Allisonj...@samba.org wrote: To allow these to apply to the new directory, set : directory mask = 0775 The reason you're not getting 775 perms on the new directory is that the default directory mask is 0755, which masks out the write permission for

[Samba] 'inherit owner' doesn't play nice with 'force directory mode'

2009-08-17 Thread jw
Hello I am trying to create a 'dropbox' share, using the sticky bit and 'inherit owner'. By themselves they work, but when a directory is created in this share, its permissions are not quite what I need. Therefore, I try to use 'force directory mode' or 'inherit permissions'. However, whenever I