[Samba] How to make "Add permission" for folder in system with
ntacl support?
Necos Secon
secon_kun at hotmail.com
Tue Oct 16 05:55:08 GMT 2007
Yes, it is possible to do this in Samba with Linux ACL support.
You have to look at setfacl. There are two types of permissions that you can set using setfacl. The first are permissions on the directory or file itself. For example, this sets the group ntadmins to read/write/execute on the directory /home/ntadmins:
setfacl -m g:"ntadmins":rwx -R /home/ntadmins
Now, the second type of permissions apply to any file (or directory) that is created in /home/ntadmins:
setfacl -m d:g:"ntusers":--- -R /home/ntadmins
The effect of the second setfacl command says that the group ntusers will be explicitly given no access to any file or directory created in /home/ntadmins.
So, if you're trying to create a dropbox for a group staff, it would look something like this:
setfacl -m g:"staff":rwx -R /home/dropbox
setfacl -m d:g:"staff":--- -R /home/dropbox
What this does is allow them to add files to the directory, but immediately strip their permissions once the file is uploaded. Try this out. I hope it does what you want.
> From: gosha at inbox.ee
> To: samba at lists.samba.org
> Subject: Fw: [Samba] How to make "Add permission" for folder in system with ntacl support?
> Date: Sun, 14 Oct 2007 22:49:34 +0300
>
> Is it too simple and therefore noone will answer? :) Or it is not possible
> with Samba on Linux?
>
> Thanks,
> G.
>
>
>
> ----- Original Message -----
> From: "Georgy Goshin" <gosha at inbox.ee>
> To: <samba at lists.samba.org>
> Sent: Thursday, October 11, 2007 6:34 PM
> Subject: [Samba] How to make "Add permission" for folder in system with
> ntacl support?
>
>
> > Hi,
> >
> > On windows nt is possible to configure permission when users can add files
> > to share or folder but can't read and even list files in this share or
> > filder. Is it possible to make this with samba fileserver?
> >
> >
> > Thanks,
> > G.
> > --
> > To unsubscribe from this list go to the following URL and read the
> > instructions: https://lists.samba.org/mailman/listinfo/samba
> >
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/listinfo/samba
_________________________________________________________________
Climb to the top of the charts! Play Star Shuffle: the word scramble challenge with star power.
http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct
More information about the samba
mailing list