1

I have a local directory /var/foo

I'd like it so that any file created in here can be read and written by any user (and any directory can be rwx).

I've tried chacl -b u::rwx,g::rwx,o::rw- u::rwx,g::rwx,o::rwx /var/foo

and then when I run getfacl /var/foo it seems these permissions are there, but then I can't even ls /var/foo any more.

There are no existing files or directories in there, but there are going to be, and I need to make sure they are world-write and -readable.

1 Answer 1

2

As documented in man setfacl you set default ACLs by prepending them with default:.

setfacl -m default:u::rwx,default:g::rwx /var/foo
3
  • Usage: setfacl [-bkndRLP] { -m|-M|-x|-X ... } file ...
    – Ivy
    Sep 3, 2012 at 14:48
  • 1
    Should have been setfacl -m ..., @Blazemore. Sep 3, 2012 at 16:41
  • @grawity Indeed. I mistakenly skipped the -m when posting my answer. Thanks for fixing. Sep 3, 2012 at 16:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .