Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
share|improve this question

marked as duplicate by Gilles, slm, jasonwryan, Joseph R., Thomas Nyman Oct 17 '13 at 3:44

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

4  
Have you logged out and logged back in after the change? –  esnyder Oct 16 '13 at 15:02
2  
See this as well. –  Joseph R. Oct 16 '13 at 15:09
    
@esnyder- I've got too many things open to do that. Any idea why that would work? (It sounds like it would from what I have been reading) –  fthinker Oct 16 '13 at 15:22
    
@esnyder,@Joseph R. - I've upvoted both of you since your comments were both correct. –  fthinker Oct 16 '13 at 15:37

1 Answer 1

up vote 2 down vote accepted

When you add a group to an user this one should logout/login in order 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)
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.