Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have the following directory:

$ ll -d neptune
drwxrws---+ 5 beamin psych 4096 Mar  7 16:18 neptune

$ getfacl neptune
# file: neptune
# owner: beamin
# group: psych
# flags: -s-
user::rwx
group::r-x
group:sysadmins:rwx
group:psych:rwx
mask::rwx
other::---
default:user::---
default:group::r-x
default:group:sysadmins:rwx
default:group:psych:rwx
default:mask::rwx
default:other::---

I am logged in as beamin:

$ id beamin
uid=1000(beamin) gid=1000(beamin) groups=1000(beamin),2000(sysadmins)

$ umask
0002

However, when I create a directory or file, this is what I get:

$ cd neptune

$ mkdir dir

$ touch file

$ ll
total 8
d---rws---+ 2 beamin psych 4096 Mar  7 16:25 dir
----rw----+ 1 beamin psych    0 Mar  7 16:25 file

Why is this?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

I suspect the answer is in the properties stored in that ACL you dumped:

Why the owner has no permission:

default:user::---

Why group has rwx:

default:group:psych:rwx

Why others have no permission:

default:other::---

This ACL stuff overrides traditional Unixy behavior.

share|improve this answer
    
Group has 'rw' though. How is that explained? –  Beaming Mel-Bin Mar 8 '12 at 1:57
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.