I’m trying to add myself to the fuse user group but it doesn’t look like the change is taking effect even though /etc/group looks correct after invoking addgroup or usermod.
I’ve tried both …
sudo addgroup fjohnson fuse
and
sudo usermod -a -G fuse fjohnson
/etc/group shows the change
fuse:x:104:fjohnson
but I can’t read
-rw-r----- 1 root fuse 215 Oct 16 10:39 /etc/fuse.conf
as
cat: /etc/fuse.conf: Permission denied
and groups(1) returns
fjohnson adm dialout cdrom plugdev lpadmin admin sambashare
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
When you add a group to a user, this user should logout/login in order for the change to take effect.
You can also use newgrp command.
$ id uid=1000(romain) gid=1000(romain) groups=1000(romain),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),105(scanner),110(bluetooth),112(netdev) $ sudo addgroup romain fuse Adding user `romain' to group `fuse' ... Adding user romain to group fuse Done. $ id uid=1000(romain) gid=1000(romain) groups=1000(romain),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),105(scanner),110(bluetooth),112(netdev) $ newgrp fuse $ id uid=1000(romain) gid=103(fuse) groups=1000(romain),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),103(fuse),105(scanner),110(bluetooth),112(netdev)
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0