Bug 835813

Summary: Fuse not writable by users
Product: [openSUSE] openSUSE Tumbleweed Reporter: Forgotten User 5jFyFBvk-I <forgotten_5jFyFBvk-I>
Component: BasesystemAssignee: Robert Milasan <rmilasan>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P4 - Low CC: dimstar, fcrozat, forgotten_sLJ7K2dvxj, meissner, rmilasan, sbrabec
Version: 13.1 Milestone 4   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Forgotten User 5jFyFBvk-I 2013-08-21 07:22:48 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0

Hi

I cannot mount as a regular user using sshfs I get: fuse: failed to open /dev/fuse: Permission denied
So, I have to do a chmod a+rw /dev/fuse :-(

Reproducible: Always

Steps to Reproduce:
1. Reboot
2. Try to use sshfs or other fuse util
3.
Actual Results:  
Get a permission error

Expected Results:  
Fuse operation should have been successful
Comment 1 Marcus Meissner 2013-08-21 20:40:53 UTC
/dev/fuse should be 666

 /usr/lib/udev/rules.d/50-udev-default.rules:KERNEL=="fuse", MODE="0666", OPTIONS+="static_node=fuse"
Comment 2 Forgotten User sLJ7K2dvxj 2013-09-05 14:41:11 UTC
*** Bug 835707 has been marked as a duplicate of this bug. ***
Comment 3 Dominique Leuenberger 2013-09-07 17:01:45 UTC
I see the same issue; surprisingly /dev/fuse is there without the kernel module being loaded.

launching 'modprobe fuse' loads the module without error and also assigns the right permission (that seems to be when the udev rule from comment 1 is hit)

So the question would probably be: why does fuse.ko not get loaded?
Comment 4 Forgotten User sLJ7K2dvxj 2013-09-09 13:02:27 UTC
The permissions should be 0666 *before* the module is loaded, and then the module would be autoloaded and everything would work fine, as it does on 12.3.

So to me it looks like something in udev.

Guessing maintainer -> rmilasan?
Comment 5 Dominique Leuenberger 2013-09-09 13:06:57 UTC
FYI: I added a /etc/modules-load.d/fuse.conf (with content fuse) and upon reboot, the module gets loaded, but the permission remain 0600;

so there is clearly something 'resetting' fuse permissions.

http://lists.freedesktop.org/archives/systemd-devel/2013-July/012261.html
Comment 6 Dominique Leuenberger 2013-09-09 13:07:47 UTC
Upstream commit addressing it:
http://cgit.freedesktop.org/systemd/systemd/commit/?id=ec99834cb0
Comment 7 Dominique Leuenberger 2013-09-09 13:23:04 UTC
(In reply to comment #6)
> Upstream commit addressing it:
> http://cgit.freedesktop.org/systemd/systemd/commit/?id=ec99834cb0

The few commits before that one are also needed (introducing --exclude-prefix for example)
Comment 8 Robert Milasan 2013-09-09 13:36:46 UTC
Frederic, isn't the commit part of systemd?
Comment 9 Frederic Crozat 2013-09-09 14:00:57 UTC
(In reply to comment #8)
> Frederic, isn't the commit part of systemd?

yes, I'll do the backport..
Comment 10 Frederic Crozat 2013-09-09 15:06:04 UTC
I've submitted fixes in home:fcrozat:branches:Base:System / systemd

Please test (once the packages are available)
Comment 11 Dominique Leuenberger 2013-09-09 20:03:40 UTC
(In reply to comment #10)
> I've submitted fixes in home:fcrozat:branches:Base:System / systemd
> 
> Please test (once the packages are available)

Installed yiour fixed systemd packages, rebooted and mounted a sshfs without any issues... so this looks all right.
Comment 12 Stanislav Brabec 2013-09-10 13:59:59 UTC
encfs - the issue is gone as well.

Also GNOME now autoloads fuse. I see just after login to GNOME:

oct:~ # lsmod | grep fuse
fuse                   95850  3
Comment 13 Bernhard Wiedemann 2013-09-12 16:00:11 UTC
This is an autogenerated message for OBS integration:
This bug (835813) was mentioned in
https://build.opensuse.org/request/show/198722 Factory / systemd
Comment 14 Bernhard Wiedemann 2013-09-13 09:00:25 UTC
This is an autogenerated message for OBS integration:
This bug (835813) was mentioned in
https://build.opensuse.org/request/show/198835 Factory / systemd
https://build.opensuse.org/request/show/198848 Factory / systemd
Comment 15 Bernhard Wiedemann 2013-09-13 09:00:51 UTC
This is an autogenerated message for OBS integration:
This bug (835813) was mentioned in
https://build.opensuse.org/request/show/198836 Factory / systemd
Comment 16 Dominique Leuenberger 2013-09-22 13:38:09 UTC
AS confirmed, the problem has been solved by Frederic and the fixed systemd version entered Factory.