Using Manjaro/xfce I’m logged in as my user. I did this in terminal:
$ su # groupadd photos # usermod -a -G photos myuser # /home/_shared/photos # chown root:photos /home/_shared/photos # chmod 3770 /home/_shared/photos
Now myuser should be able to browse the folder /home/_shared/photos using Thunar. I get permission denied. So starting a new terminal session I try (as myuser):
$ ls -l /home/_shared/photos $ groups sys network power lp wheel myuser $ su # groups myuser sys network power lp wheel myuser photos # su myuser $ groups sys network power lp wheel myuser photos
So, it seems like the group membership is not updated while user is logged in. I tried to lock and unlock the session. I’ve tried to put the pc to sleep. I’ve tried hibernate. None of these changed anything. I also left the pc running over night, hoping time would help. It didn’t.
Is there really no way to update the effective group membership while a user is logged in?
(In windows group membership of a running session will update when the pc is locked/unlocked)