Re: [Samba] Permission and Owner issue on child file/folder

2011-03-15 Thread TAKAHASHI Motonobu
From: Brajesh Shrivastava 
Date: Tue, 15 Mar 2011 16:59:12 +0530

> > How about these parameters:
> >  inherit permissions = yes
> >  inherit owner = no

> Thanks  a lot  Motonob for immediate response.
> 
> Tried this combination, but it didn't work. When I am trying to create a
> file/folder then full control is being assigned to the user for that
> file/directory. I want to inherit the permission of user from parent
> directory instead of assigning full control.
> 
> Please can you suggest in other way for this.

Does your "permission" mean just permision or ACL?
And do you set "store dos attributes = yes"?

Please show me 

-
$ ls -la  /parentdir
$ getfacl /parentdir
$ ls -la  /parentdir/createdfile
$ getfacl /parentdir/createdfile
-

And the expected:

-
$ ls -la  /parentdir/createdfile
$ getfacl /parentdir/createdfile
-

And your smb.conf.

---
TAKAHASHI Motonobu 





-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Permission and Owner issue on child file/folder

2011-03-15 Thread Santiago DIEZ
When I read Motonobu's answer, the first thing I did was go check the
parameter in 
smb.conf<http://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html>manual.
It's quite obvious that the next parameter, just after *inherit owner (S)*is
*inherit permissions (S)*.
I guess that would do what you need.

---
*Santiago DIEZ
Directeur
**Portable: +33 6 37 90 81 98
Bureau: +33 9 70 44 77 87*
*32 boulevard de Strasbourg, 75010 Paris*




On Tue, Mar 15, 2011 at 12:29 PM, Brajesh Shrivastava  wrote:

> Thanks  a lot  Motonob for immediate response.
>
> Tried this combination, but it didn't work. When I am trying to create a
> file/folder then full control is being assigned to the user for that
> file/directory. I want to inherit the permission of user from parent
> directory instead of assigning full control.
>
> Please can you suggest in other way for this.
>
> Thanks
>
> On 15 March 2011 16:49, TAKAHASHI Motonobu  wrote:
>
> > From: Brajesh Shrivastava 
> > Subject: [Samba] Permission and Owner issue on child file/folder
> > Date: Tue, 15 Mar 2011 16:38:50 +0530
> >
> > > Hi All
> > >
> > > I want to inherit the parent folder permission on its child
> file/folder.
> > > However, owner should be the same user who is creating file/folder
> (i.e.
> > > owner shouldn't be inherited from the parent directory). Is there any
> way
> > to
> > > achieve this. I am currently using Samba 3.5.7.
> >
> > How about these parameters:
> >  inherit permissions = yes
> >  inherit owner = no
> >
> > The default of inherit owner is "no".
> >
> > ---
> > TAKAHASHI Motonobu 
> >
> >
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Permission and Owner issue on child file/folder

2011-03-15 Thread Brajesh Shrivastava
Thanks  a lot  Motonob for immediate response.

Tried this combination, but it didn't work. When I am trying to create a
file/folder then full control is being assigned to the user for that
file/directory. I want to inherit the permission of user from parent
directory instead of assigning full control.

Please can you suggest in other way for this.

Thanks

On 15 March 2011 16:49, TAKAHASHI Motonobu  wrote:

> From: Brajesh Shrivastava 
> Subject: [Samba] Permission and Owner issue on child file/folder
> Date: Tue, 15 Mar 2011 16:38:50 +0530
>
> > Hi All
> >
> > I want to inherit the parent folder permission on its child file/folder.
> > However, owner should be the same user who is creating file/folder (i.e.
> > owner shouldn't be inherited from the parent directory). Is there any way
> to
> > achieve this. I am currently using Samba 3.5.7.
>
> How about these parameters:
>  inherit permissions = yes
>  inherit owner = no
>
> The default of inherit owner is "no".
>
> ---
> TAKAHASHI Motonobu 
>
>
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Permission and Owner issue on child file/folder

2011-03-15 Thread Santiago DIEZ
Thanks Motonobu for correcting me.

---
*Santiago DIEZ
Directeur
**Portable: +33 6 37 90 81 98
Bureau: +33 9 70 44 77 87*
*32 boulevard de Strasbourg, 75010 Paris*




On Tue, Mar 15, 2011 at 12:19 PM, TAKAHASHI Motonobu wrote:

> From: Brajesh Shrivastava 
> Subject: [Samba] Permission and Owner issue on child file/folder
> Date: Tue, 15 Mar 2011 16:38:50 +0530
>
> > Hi All
> >
> > I want to inherit the parent folder permission on its child file/folder.
> > However, owner should be the same user who is creating file/folder (i.e.
> > owner shouldn't be inherited from the parent directory). Is there any way
> to
> > achieve this. I am currently using Samba 3.5.7.
>
> How about these parameters:
>  inherit permissions = yes
>  inherit owner = no
>
> The default of inherit owner is "no".
>
> ---
> TAKAHASHI Motonobu 
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Permission and Owner issue on child file/folder

2011-03-15 Thread Santiago DIEZ
Hi Brajesh,

As far as I know, you cannot do that.
Group can be inherited using the *s* permission (octal *2000*).
But the owner of a file will always be the user who created it.

Good luck
---
*Santiago DIEZ
Directeur
**Portable: +33 6 37 90 81 98
Bureau: +33 9 70 44 77 87*
*32 boulevard de Strasbourg, 75010 Paris*




On Tue, Mar 15, 2011 at 12:08 PM, Brajesh Shrivastava  wrote:

> Hi All
>
> I want to inherit the parent folder permission on its child file/folder.
> However, owner should be the same user who is creating file/folder (i.e.
> owner shouldn't be inherited from the parent directory). Is there any way
> to
> achieve this. I am currently using Samba 3.5.7.
>
> Thanks in advance.
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Permission and Owner issue on child file/folder

2011-03-15 Thread TAKAHASHI Motonobu
From: Brajesh Shrivastava 
Subject: [Samba] Permission and Owner issue on child file/folder
Date: Tue, 15 Mar 2011 16:38:50 +0530

> Hi All
> 
> I want to inherit the parent folder permission on its child file/folder.
> However, owner should be the same user who is creating file/folder (i.e.
> owner shouldn't be inherited from the parent directory). Is there any way to
> achieve this. I am currently using Samba 3.5.7.

How about these parameters:
  inherit permissions = yes
  inherit owner = no

The default of inherit owner is "no".

---
TAKAHASHI Motonobu 

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Permission and Owner issue on child file/folder

2011-03-15 Thread Brajesh Shrivastava
Hi All

I want to inherit the parent folder permission on its child file/folder.
However, owner should be the same user who is creating file/folder (i.e.
owner shouldn't be inherited from the parent directory). Is there any way to
achieve this. I am currently using Samba 3.5.7.

Thanks in advance.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Permission and Owner issue on child file/folder

2011-03-15 Thread Brajesh Shrivastava
Hi All

I want to inherit the parent folder permission on its child file/folder.
However, owner should be the same user who is creating file/folder (i.e.
owner shouldn't be inherited from the parent directory). Is there any way to
achieve this. I am currently using Samba 3.5.7.

Thanks in advance.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba