1 |
I have used fstab in the past -its more a workaround that breaks (i.e, a |
2 |
disk usually, but not always appears as /dev/sde, and while I currently |
3 |
use btrfs I also use xfs on some portable drives.) |
4 |
|
5 |
I mean automounting of disks (pam/polkit/udsiks2 seem to be involved), |
6 |
not autofs in this case |
7 |
|
8 |
BillK |
9 |
|
10 |
|
11 |
On 1/4/21 3:13 pm, Ramon Fischer wrote: |
12 |
> Hello BillK, |
13 |
> |
14 |
> I guess, that you are looking for the mount option "user": |
15 |
> |
16 |
> /etc/fstab |
17 |
> |
18 |
> /dev/sdx /<some_path> ext4 noauto,user,relatime |
19 |
> 0 2 |
20 |
> |
21 |
> In this way, I can mount "/dev/sdx" with an unprivileged user: |
22 |
> |
23 |
> $ mount /<some_path> |
24 |
> |
25 |
> See also "man 8 mount" ("Non-superuser mounts"). |
26 |
> |
27 |
> I am not sure, if this also works with "automount" from |
28 |
> "net-fs/autofs", if this is what you meant with "automounter". |
29 |
> |
30 |
> -Ramon |
31 |
> |
32 |
> On 01/04/2021 06:51, William Kenworthy wrote: |
33 |
>> Hi, |
34 |
>> |
35 |
>> I use a sata drive caddy with 2Tb hard disks for offline backups. |
36 |
>> Almost everytime (within sessions are ok?) it asks for a password before |
37 |
>> automounting. This is just annoying and has no security benefit in my |
38 |
>> environment (why just hard disks when USB keys and SD cards don't ask |
39 |
>> for one?). |
40 |
>> |
41 |
>> So, how can I disable the automounter asking for a password either in |
42 |
>> general, or just for my backup drives? |
43 |
>> |
44 |
>> BillK |
45 |
>> |
46 |
>> |
47 |
>> |
48 |
> |