add user to group fuse, usermod doesnt work?

Kernels & Hardware, configuring network, installing services

add user to group fuse, usermod doesnt work?

Postby jcress410 » 2011-03-11 12:11

cant use sshfs without permissions on /dev/fuse

tried with sudo

Code: Select all
fuse: failed to open /dev/fuse: Permission denied
jcress@debian:~$ groups
jcress cdrom floppy audio dip video plugdev netdev bluetooth scanner
jcress@debian:~$ sudo usermod -a -G fuse jcress
jcress@debian:~$ groups
jcress cdrom floppy audio dip video plugdev netdev bluetooth scanner


tried as root

Code: Select all
jcress@debian:~$ groups
jcress cdrom floppy audio dip video plugdev netdev bluetooth scanner
jcress@debian:~$ su
Password:
root@debian:/home/jcress# usermod -G fuse -a jcress
root@debian:/home/jcress# exit
exit
jcress@debian:~$ groups
jcress cdrom floppy audio dip video plugdev netdev bluetooth scanner
jcress@debian:~$
jcress410
 
Posts: 39
Joined: 2010-09-21 18:13

Re: add user to group fuse, usermod doesnt work?

Postby aspnair » 2011-03-11 13:01

That group may not be present for the current shell session.
Just do the following.
grep <username> /etc/groups
to see the list of groups in which the user has been added.
To take effect, you may have to logout and login again. Or it would take effect after the next reboot.
Compressed Air Energy Storage, Entropy and Efficiency
http://saurorja.org/2012/06/18/compress ... fficiency/
User avatar
aspnair
 
Posts: 1247
Joined: 2009-06-18 12:27
Location: Twitter: @anand_sivaram

Re: add user to group fuse, usermod doesnt work?

Postby aicardi » 2011-03-11 13:50

What I do as root is
Code: Select all
#adduser <username> <group>

example:
Code: Select all
#adduser aicardi fuse

Log out and back in. Check it by
$groups

You should now see that you are in the fuse group.
Jessie/Xfce
User avatar
aicardi
 
Posts: 388
Joined: 2009-11-18 01:30
Location: Chicago


Return to System configuration

Who is online

Users browsing this forum: No registered users and 11 guests

fashionable