On Fri, Dec 21, 2018 at 01:01:55PM +0100, Adrian Siemieniak wrote: > W dniu 21.12.2018 o 12:51, Sven Hoexter pisze: > > On Fri, Dec 21, 2018 at 12:41:11AM +0100, Adrian Siemieniak wrote:
Hi Adrian, > > > Trying to mount exfat device by unprivileged user renders this error: > > > :~$ /sbin/mount.exfat-fuse -d /dev/sdg1 mnt/ > > > FUSE exfat 1.3.0 > > > fusermount: unknown option 'user=sauron' > > > > > > It the same with different users and I've also tested it on other machine > > > (also Debian/Sid). > > > > I'm not entirely sure what you like to achieve. To the best of my knowledge > > the exfat fuse > > implementation only supports the filesystem options listed in man 8 > > mount.exfat. > > I also had a short look into man 8 mount.fuse and can't find any mention of > > a "user" option, > > so I'm not even sure if you expect it to be a filesystem option or a fuse > > option. > > Well, the problem is I don't set this options "user=uid" - this is done > somewhere in between by fuse or exfat-fuse - I don't know. Ok I had a short look at this. I can see (via strace) that there is the following invocation of fusermount: 24748 execve("/bin/fusermount", ["fusermount", "-o", "rw,nosuid,nodev,allow_other,default_permissions,blksize=4096,user=sven,blkdev,fsname=/dev/sdb", "--", "/home/sven/mnt"], 0x55d976d2ea90 /* 25 vars */) = 0 Looking into libfuse/lib/mount.c (the fuse source package), I can find a FUSE_OPT_KEY("user=", KEY_MTAB_OPT), I would assume it should be able to handle that one, though it seems it does not. Sven