Access control through group membership
Can someone please help me understand why user smk cannot access a folder /root/quotamnt when user smk belongs to a valid group (root) that is authorized to access the folder (/root/quotamnt).
Have a folder /root/quotamnt that allows users in group "root":
root@SandBox1:~# ls /root/quotamnt
drwxr-xr-x 3 root root 1.0K May 24 14:41 quotamnt
Then added user smk to group "root":
smk@SandBox1:~$ sudo usermod -a -G root smk
Verify it exists:
smk@SandBox1:~$ groups smk
smk : smk root adm cdrom sudo dip plugdev lpadmin sambashare
Logged out and logged back in as smk.
Why can't smk access /root/quotamnt:
smk@SandBox1:~$ ls /root/quotamnt
ls: cannot access '/root/quotamnt': Permission denied
Thanks in advance!