Gentoo Archives: gentoo-user

From: Michael <confabulate@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] mounting USB without root password
Date: Fri, 29 Jan 2021 17:06:29
Message-Id: 7867758.T7Z3S40VBb@lenovo.localdomain
In Reply to: Re: [gentoo-user] mounting USB without root password by "Matt Connell (Gmail)"
1 On Friday, 29 January 2021 16:47:51 GMT Matt Connell (Gmail) wrote:
2 > On Fri, 2021-01-29 at 09:34 -0700, thelma@×××××××××××.com wrote:
3 > > I uncommented in: sudoers (it works)
4 > > %wheel ALL=(ALL) ALL
5 > >
6 > > %wheel ALL=(ALL) NOPASSWD: ALL
7 >
8 > This feels like fixing a loose screw with a sledgehammer.
9 >
10 > This change allows any wheel group users to execute any command (via
11 > sudo) without authenticating. That is to say, the change is far more
12 > broad than the originally stated issue you're trying to fix. Do you
13 > implicitly trust all wheel group users that much?
14 >
15 > sysfs/udisks, as stated previously, is probably the correct tool for
16 > the job.
17
18 What Matt said.
19
20 You have effectively elevated to root level all of your wheel users, without
21 the need to use a root passwd. There is a reason group wheel exists and this
22 is not to duplicate root in terms of privileges.
23
24 Your issue/question is why does your DE, in this case XFCE, stopped mounting
25 removable block devices.
26
27 The userspace application used by DEs is sys-fs/udisks. You can use this on a
28 terminal yourself:
29
30 udisksctl mount --block-device /dev/sdbX
31
32 There is also the sys-apps/pmount command. However, in the first instance you
33 should look into what XFCE offers for mounting removable block devices and if
34 something is amiss with that.

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] mounting USB without root password "Matt Connell (Gmail)" <matthewdconnell@×××××.com>