Can't read directory owned by my group
- by Jonathan
I moved the postgres data directory to a separate partition and it works great. The directory is owned by postgres user and postgres group.
d-wx------ 11 postgres postgres 4.0K 2010-06-11 08:28 data/
I added myself to the group
> sudo addgroup me postgres
> groups me
me : me adm dialout cdrom plugdev lpadmin admin sambashare postgres
And gave the group read and execute permissions to everything in the directory.
sudo chmod -R g+rx ./data
d-wxr-x--- 11 postgres postgres 4.0K 2010-06-11 08:28 data/
But I still can not CD or LS the directory.
> ls data
ls: cannot open directory data: Permission denied
What beginner mistake am I making?