I have a user and a group called awe
on my server.
It's home directory is /home/awe
I created a new user called c37
. I then ran the following command (as root)
usermod -a -G awe c37
Now when I'm logged in as c37
and type groups
I get:
c37 awe
But yet when I run the following commands as c37
:
cd /home/awe/
ls -l
/bin/ls: cannot open directory .: Permission denied
Why is this? I thought adding a user to that group would give me permission to access everything that the user awe
has access to?
g+rX
does? I can't find any of them in the man pages – Chud37 May 17 '16 at 07:42sudo chmod g= ~awe
(note the space after =) – Ezequiel Tolnay May 17 '16 at 08:17