From: Ramon Fischer <Ramon_Fischer@hotmail.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Disable password required to mount removable hard disk.
Date: Thu, 1 Apr 2021 09:13:52 +0200 [thread overview]
Message-ID: <AM6PR10MB24400E735CC5F33D99A2F9DBEF7B9@AM6PR10MB2440.EURPRD10.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <1d823216-2cee-8cec-68d2-c4d5831f04a9@iinet.net.au>
[-- Attachment #1.1: Type: text/plain, Size: 1064 bytes --]
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
>
>
>
--
GPG public key: 5983 98DA 5F4D A464 38FD CF87 155B E264 13E6 99BF
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
next prev parent reply other threads:[~2021-04-01 7:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-01 4:51 [gentoo-user] Disable password required to mount removable hard disk William Kenworthy
2021-04-01 7:13 ` Ramon Fischer [this message]
2021-04-01 7:21 ` Ramon Fischer
2021-04-01 10:08 ` William Kenworthy
2021-04-01 11:28 ` [gentoo-user] Disable password required to mount removable hard disk. (solved) William Kenworthy
2021-04-01 11:58 ` Ramon Fischer
2021-04-01 8:12 ` [gentoo-user] Disable password required to mount removable hard disk William Kenworthy
2021-06-18 6:13 ` Hund
2021-06-18 12:24 ` William Kenworthy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AM6PR10MB24400E735CC5F33D99A2F9DBEF7B9@AM6PR10MB2440.EURPRD10.PROD.OUTLOOK.COM \
--to=ramon_fischer@hotmail.de \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox