December 7, 2010

Set default ACL on Linux

Filed under: UNIX & Linux — martin @ 2:45 pm

Challenge: User1 has a world-writable directory. User2 has umask 077 set and writes into User1’s world writable directory. User1 can’t read those files.

Workaround: Short of User 2 setting his umask properly, set a default ACL on the directory:

setfacl -d -m user::rw,group::rw,other::r /path/to/User1/incoming/

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Blog at WordPress.com.

%d bloggers like this: