I'm trying to set up my Linux server and I managed to get stuck at this point:
- I created a group called 'gitusers' and added a user to it (let's call him 'foo')
- I created a folder called 'website'
- I set 'gitusers' as the group of 'website' and chmod'ed it to 775
- I'm logged in as 'foo' but mkdir just returns a 'permission denied' error
Q: Why does this happen and how do I solve this?
Notes:
I browsed to 'website' and did a ls -al
:
ls -al
total 8
drwxrwxr-x. 2 root gitusers 4096 Oct 24 22:39 .
drwxr-xr-x. 3 root root 4096 Oct 24 22:39 ..
As you can see the current folder's group is 'gitusers'
But I still get the permission error:
mkdir test
mkdir: cannot create directory `test': Permission denied
id
,id -a
, andgroups
show? Can you create plain files in the "website" directory? Do you have ACLs?