0

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.

4
  • What error you are getting while trying to access ?
    – Napster_X
    Jan 13, 2013 at 9:24
  • Also, what's the location where you created this test directory ?
    – Napster_X
    Jan 13, 2013 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, 2013 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, 2013 at 16:56

1 Answer 1

0

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.

1
  • I replied with an edit.
    – Paul
    Jan 13, 2013 at 9:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .