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":
[email protected]:~# ls /root/quotamnt
drwxr-xr-x 3 root root 1.0K May 24 14:41 quotamnt
Then added user smk to group "root":
[email protected]:~$ sudo usermod -a -G root smk
Verify it exists:
[email protected]:~$ 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:
[email protected]:~$ ls /root/quotamnt
ls: cannot access '/root/quotamnt': Permission denied
Thanks in advance!