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.

Using Debian I am unable to create files that by default has read permission for all users.

For example:

# umask
0002
# touch test
# ls -l test
-rw-rw----+ 1 user user 0 Jun 25 18:18 test

Is there any specific restriction on creating readable files?

share|improve this question
    
the + at the file perm. output is the giveaway that ACL is overriding the permission settings. –  fduff Jun 26 at 7:28
add comment

1 Answer

up vote 2 down vote accepted

Because your system use ACLs, so the file will have extended permission. Try:

getfacl test

to see exactly file permission.

share|improve this answer
    
There is that string here default:other::---. I it relative to my question? I tested current directory. –  Dezl Jun 25 at 19:26
    
Well, I tried setfacl -m "default:other:r--", and it worked. Thanks for the hint. –  Dezl Jun 25 at 19:43
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.