Gentoo Archives: gentoo-user

From: Bill Kenworthy <billk@×××××××××.au>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] udisks and exfat
Date: Wed, 01 May 2019 02:32:37
Message-Id: eb3ec22f-2ea3-0289-4403-e942d4408aec@iinet.net.au
In Reply to: Re: [gentoo-user] udisks and exfat by Mick
1 Got sidetracked - turns out fuse and exfat on usb do not play well with
2 mounts as a user due to changes late last year.  It can now only be
3 mounted/unmounted by root.
4
5 The second part (also due to fuse) is that to stop fuse (silently as ls
6 still showed the execute bit set) from interfering with execution of
7 files on the mounted device) it must be mounted as the user under a user
8 owned directory such as /home/user (mount cannot deal with this - it did
9 in the past, but something has changed).  So the solution is to mount
10 via root as the user you want (via sudo) under a mount point in the
11 users home.  This may all be unique to fuse-exfat, and which versions of
12 everything involved as I saw one email on the mechanics of the changes
13 saying fat is handled a little differently due to a different use
14 scenario.  And ext2/3/4 etc don't have the problem at all.  Auto-mount
15 on device plugin still doesn't happen so thats next on my list.
16
17 /etc/fstab:
18
19 /dev/sda1               /home/myuser/mnt           auto           
20 rw,auto,exec,uid=1000,gid=1000,users,user=myuser                   0 0
21
22
23 BillK
24
25
26
27 On 4/30/19 6:51 PM, Mick wrote:
28 > On Tuesday, 30 April 2019 04:07:23 BST Jack wrote:
29 >> On 2019.04.29 21:19, Bill Kenworthy wrote:
30 >>> How does one execute a file on an exfat formatted usb key?
31 >>>
32 >>> I have an encryption app that must be executed from the drive to work
33 >>> (secure-stick). Works great in windows, linux is a real pain because
34 >>> I
35 >>> think udisks is forcing execute off and I cant overide it.
36 >>>
37 >>>
38 >>> help!
39 >>>
40 >>> BillK
41 >> At least show us the output of "ls -l" on the file in question. Does
42 >> "chown +x file" have any effect? Why do you think you can't execute
43 >> such a file? What happens when you try? How have you tried?
44 >>
45 >> Jack
46 > I just mounted a USB stick which has been formatted with exFAT and the files
47 > and directories are executable:
48 >
49 > # ls -la /run/media/michael/VERBATIM32G/
50 > total 10672960
51 > drwxrwxrwx 1 michael michael 32768 Jan 1 1970 .
52 > drwxr-x---+ 3 root root 60 Apr 30 11:40 ..
53 >
54 > I tested running a bash script by passing the full path to the terminal and it
55 > works as expected.

Replies

Subject Author
Re: [gentoo-user] udisks and exfat Mick <michaelkintzios@×××××.com>