Can't read directory owned by my group
Posted
by Jonathan
on Server Fault
See other posts from Server Fault
or by Jonathan
Published on 2010-06-11T15:10:44Z
Indexed on
2010/06/11
15:13 UTC
Read the original article
Hit count: 235
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?
© Server Fault or respective owner