Permission denied error - linux user belongs to the owned group

view full story

http://serverfault.com – I have added the user "test" in myuser group [usermod -a -G test myuser]. But if try to execute or try to cd to datadir as "test" user gives the Permission denied error. datadir is having the following privilege [770 the user "test" is belongs to myuser group still it gives the Permission denied error]. drwxrwx--- 3 myuser myuser 4096 Feb 6 16:24 datadir grep "^test" /etc/group test:x:503:myuser groups myuser myuser : myuser test (HowTos)