1 |
Hi, I only have a default polkit rule - nothing about usb. |
2 |
|
3 |
Just noticed the mount dialog box contains: |
4 |
|
5 |
Action: org.freedesktop.udisks2.filesystem-mount-system |
6 |
|
7 |
Vendor: The Udsks Project" |
8 |
|
9 |
I have found some documents on the web, but nothing yet on how to deal |
10 |
with this issue. |
11 |
|
12 |
BillK |
13 |
|
14 |
|
15 |
On 1/4/21 3:21 pm, Ramon Fischer wrote: |
16 |
> Addendum: |
17 |
> |
18 |
> I forgot to answer your other question: |
19 |
> |
20 |
> Maybe you also have set some rules in "/etc/polkit/rules.d/"[1], which |
21 |
> allows your unprivileged user to mount USB drives and SD cards without |
22 |
> any password. |
23 |
> |
24 |
> -Ramon |
25 |
> |
26 |
> [1] https://wiki.gentoo.org/wiki/Polkit |
27 |
> |
28 |
> On 01/04/2021 09:13, Ramon Fischer wrote: |
29 |
>> Hello BillK, |
30 |
>> |
31 |
>> I guess, that you are looking for the mount option "user": |
32 |
>> |
33 |
>> /etc/fstab |
34 |
>> |
35 |
>> /dev/sdx /<some_path> ext4 noauto,user,relatime |
36 |
>> 0 2 |
37 |
>> |
38 |
>> In this way, I can mount "/dev/sdx" with an unprivileged user: |
39 |
>> |
40 |
>> $ mount /<some_path> |
41 |
>> |
42 |
>> See also "man 8 mount" ("Non-superuser mounts"). |
43 |
>> |
44 |
>> I am not sure, if this also works with "automount" from |
45 |
>> "net-fs/autofs", if this is what you meant with "automounter". |
46 |
>> |
47 |
>> -Ramon |
48 |
>> |
49 |
>> On 01/04/2021 06:51, William Kenworthy wrote: |
50 |
>>> Hi, |
51 |
>>> |
52 |
>>> I use a sata drive caddy with 2Tb hard disks for offline backups. |
53 |
>>> Almost everytime (within sessions are ok?) it asks for a password |
54 |
>>> before |
55 |
>>> automounting. This is just annoying and has no security benefit in my |
56 |
>>> environment (why just hard disks when USB keys and SD cards don't ask |
57 |
>>> for one?). |
58 |
>>> |
59 |
>>> So, how can I disable the automounter asking for a password either in |
60 |
>>> general, or just for my backup drives? |
61 |
>>> |
62 |
>>> BillK |
63 |
>>> |
64 |
>>> |
65 |
>>> |
66 |
>> |
67 |
> |