I had a user john in fedora 19usergroup marygroupuseradd -g marygroup maryusermod -a -G marygroup johnIn John terminal:cd /home/maryPermission deniedcd /homels -ldrwx------. 11 john johndrwx------. 11 mary marygrouplogged into as rootchmod 770 /home/maryls -ldrwx------. 11 john johndrwxrwx---. 11 mary marygroupstill cannot do cd Permission denied why?
user accessing and permission denied
permissions;users;fedora
By executing chmod 770 /home/mary all you did was set Read-Write-Execute permission for the Owner User and Owner Group of /home/mary folder (which is mary and marygroup).If you want to access mary's home as john, you need to add user john to group marygroup:$ gpasswd -a john marygroup`For this to take effect, you will have to relogin as user john.