public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* Re: [gentoo-user] Disable password required to mount removable hard disk.
  @ 2021-04-01  8:12 99%   ` William Kenworthy
  0 siblings, 0 replies; 1+ results
From: William Kenworthy @ 2021-04-01  8:12 UTC (permalink / raw
  To: gentoo-user

I have used fstab in the past -its more a workaround that breaks (i.e, a
disk usually, but not always appears as /dev/sde, and while I currently
use btrfs I also use xfs on some portable drives.)

I mean automounting of disks (pam/polkit/udsiks2 seem to be involved),
not autofs in this case

BillK


On 1/4/21 3:13 pm, Ramon Fischer wrote:
> Hello BillK,
>
> I guess, that you are looking for the mount option "user":
>
>    /etc/fstab
>
>    /dev/sdx         /<some_path>       ext4 noauto,user,relatime
> 0       2
>
> In this way, I can mount "/dev/sdx" with an unprivileged user:
>
>    $ mount /<some_path>
>
> See also "man 8 mount" ("Non-superuser mounts").
>
> I am not sure, if this also works with "automount" from
> "net-fs/autofs", if this is what you meant with "automounter".
>
> -Ramon
>
> On 01/04/2021 06:51, William Kenworthy wrote:
>> Hi,
>>
>>       I use a sata drive caddy with 2Tb hard disks for offline backups.
>> Almost everytime (within sessions are ok?) it asks for a password before
>> automounting.  This is just annoying and has no security benefit in my
>> environment (why just hard disks when USB keys and SD cards don't ask
>> for one?).
>>
>> So, how can I disable the automounter asking for a password either in
>> general, or just for my backup drives?
>>
>> BillK
>>
>>
>>
>


^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2021-04-01  4:51     [gentoo-user] Disable password required to mount removable hard disk William Kenworthy
2021-04-01  7:13     ` Ramon Fischer
2021-04-01  8:12 99%   ` William Kenworthy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox