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.

I am following a serverfault response (skip to "You can have your cake and eat it too") about website permissions, and I can't get folder permissions 570 to work as expected. I have verified I'm a member of the group and permissions are 570, but I can't even access the directory.

Here is an example of what I'm trying to do:

mkdir newfolder
chown lesseruser newfolder
chgrp greaterusers newfolder
chmod 570 newfolder

I am a member of greaterusers (verified in /etc/group) and I cannot access the directory.

Output ll: dr-xrwx--- 2 lesseruser greaterusers

Will wonders never cease. I just rebooted the server and everything works as expected. Strange, but for sure I'll reboot the next time before posting. Thanks for the help.

share|improve this question
    
What error you are getting while trying to access ? –  GeekRide Jan 13 '13 at 9:24
    
Also, what's the location where you created this test directory ? –  GeekRide Jan 13 '13 at 9:26
    
Does the group command show that this user is also in greatusers? Also please confirm that the command id also shows the group greatusers too. –  slm Jan 13 '13 at 10:35
    
The directory is in /var/www/. The id command shows that the user is a member of the group. –  Paul Jan 13 '13 at 16:56
add comment

1 Answer

Can you provide more info? I'm able to successfully do what I think you explained in the question:

% groups
saml tmux vboxusers jupiter

% pwd
/home/saml/adir

% ls -la
total 24
dr-xrwx---    2 root saml  4096 Jan 12 22:46 .
drwx------. 214 saml saml 20480 Jan 12 22:48 ..
-rw-r--r--    1 saml saml     0 Jan 12 22:46 afile1
-rw-r--r--    1 saml saml     0 Jan 12 22:46 afile2

NOTE: I'm on Fedora 14 with a ext4 filesystem.

share|improve this answer
    
I replied with an edit. –  Paul Jan 13 '13 at 9:13
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.