file permissions

Alan McKinnon alan at
Tue Sep 26 23:08:08 UTC 2006

On Monday 11 September 2006 14:00, Zoltan Szecsei wrote:
> Hi,
> How can I stop files taking on 600 permissions?

It's perhaps not a total answer to the original question, but 
the following may help/interest some others. I do notice that 
the question of enforcing specific file permissions on a shared 
directory has come up a few times recently, and some kind soul 
on gentoo-users provided the following information that it can 
be done with facls:

<start quoted mail>
szerda 20 szeptember 2006 11.00 dátummal Remy Blank ezt írta:
> Stefán István wrote:
> > Okay, I think I have to use acl. I've read its 
documentation, and set up 
> > following acl's:
> > 
> > setfacl -m d:u::rw /home/stefi/kepek/
> > setfacl -m d:g::rw /home/stefi/kepek/
> > setfacl -m d:o::r /home/stefi/kepek/
> > 
> > Now, if I create a file in this directory, it's permission 
will be 664 
> > of the default 644. That's very good.
> > But if I create a directory it's permissons also will be 
664. But I want 
it to 
> > be 775. How can I achive this?
> Use the following:
> setfacl -m d:u::rwx,d:g::rwx,d:o::rx /home/stefi/kepek/
> i.e. also give it a default execute permission.

Thanks, it works know, though I don't understand it.
</end quoted mail>


More information about the ubuntu-users mailing list