Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

A friend of mine set permissions on a file that he owns to 0070. He's in the group. Basically, he wants the group to have rwx, but not the file owner. When he tries to cat or vi the file, he gets permission denied. Do the user bits have to be set for the file owner in order for group members to read and write the file?

chmod 0070 test.txt 
cat test.txt 
cat: test.txt: Permission denied


chmod 0670 test.txt 
cat test.txt 
test
123
share|improve this question
    
Your display is incomplete and will prevent any of su from helping you. –  mdpc Dec 17 '12 at 4:17
add comment

1 Answer

up vote 3 down vote accepted

If he is the "owner" of the file... and "o" has 0 for it's permission bits... that means he has no rights to the file. Group bits won't be evaluated unless he is not the owner. chown the file to another user (perhaps nobody?) and then the group bits will apply. (of course... this does not apply to root) If he is indeed the owner, keep in mind that he can always change permissions back.

share|improve this answer
    
That works. Thank you! –  user1200129 Mar 9 '12 at 21:03
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.