I have created 3 users 'u1','u2','u3'. Now I want to provide access to u1's /home/u1/share directory users u2,u3.
I don't want to create a new common group named 'shared' and add 3 users there. Is it possible use 'u1' group itself ?
So far I tried
#add u2,u3 to group of u1
usermod -a -G u1 u2
usermod -a -G u1 u3
#ensure u1 has group read access
chmod 750 /home/u1
#create new shared dirs
umask 027 && mkdir /home/u1/share
Though
ls -ld /home/u1/share
drwxr-x---. 2 u1 u1 4096 Apr 23 10:11 /home/u1/share
shows read access to group - User u2 can't access this directory.
[u2@ ~]$ ls -l /home/u1/share
ls: cannot access /home/u1/share: Permission denied
Any thoughts on this ? where I'm doing it wrong?