recover from filesystem initialization error when user not in 'fuse' group
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pytagsfs |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
If the user doesn't belong to the "fuse" group
$ uid=5908(giridhar) gid=100(users) groups=
$ pytagsfs -o format="/%g/%f" /media/usb/music/ pytagsfs
fuse: failed to open /dev/fuse: Permission denied
Traceback (most recent call last):
File "/usr/bin/
sys.
File "/usr/bin/
return fs.main()
File "/usr/lib/
return fn(*args, **kwargs)
File "/usr/lib/
retval = fn(*args, **kwargs)
File "/usr/lib/
retval = super(FileSyste
File "/usr/lib/
main(**d)
fuse.FuseError: filesystem initialization failed
Changed in pytagsfs: | |
status: | New → Fix Committed |
Changed in pytagsfs: | |
status: | Fix Committed → Fix Released |
Attached patch catches exceptions caused during init and logs an error.
If pytagsfs is run with the applied patch, the sessions looks like this:
$ pytagsfs -o format="/%g/%f" /media/usb/music/ pytagsfs
fuse: failed to open /dev/fuse: Permission denied
And running it in foreground (-f)
$ pytagsfs -o format="/%g/%f" /media/usb/music/ pytagsfs
fuse: failed to open /dev/fuse: Permission denied
error: are you a part of the fuse group?