1 |
Lindsay Haisley <fmouse-gentoo@×××.com> posted |
2 |
1193028074.25192.11.camel@××××××××××.com, excerpted below, on Sun, 21 Oct |
3 |
2007 23:41:14 -0500: |
4 |
|
5 |
> It should be pointed out that Gentoo already has something very close to |
6 |
> what I'm suggesting here. /etc/login.defs has a setting, |
7 |
> CONSOLE_GROUPS, which defines the "groups to add to the user's |
8 |
> supplementary group set when logging in on the console". The default, |
9 |
> reasonably, is to add no groups, but uncommenting the setting in this |
10 |
> file adds groups floppy, audio and cdrom. |
11 |
> |
12 |
> Rather than describing this as a "very Bad Thing" the comments in the |
13 |
> file simply instruct the sysadmin to "Use with caution". |
14 |
|
15 |
... And I agree with it at that level... because it's not the default. A |
16 |
warning to the sysadmin to "use with caution" is then enough. If they |
17 |
decide to use it (which I agree can be reasonable on a single-human-user |
18 |
desktop system, IIRC I have my regular user in plugdev here) and end up |
19 |
screwed as a result, well, it's very likely their own fault. (The "very |
20 |
likely" qualifier added to match the case where a distribution and/or |
21 |
upstream were unreasonably slow on updating after a remotely exploitable |
22 |
security vuln in related software is made known to them, but they did |
23 |
nothing, including failing to publish the vuln, thus letting the admin |
24 |
know and putting responsibility on him once again, for continuing to use |
25 |
software with known remote exploits either ignoring or not following the |
26 |
given warnings.) |
27 |
|
28 |
> Unfortunately, this setting won't work with Hal and plugdev, which |
29 |
> relies entirely on reading /etc/group. |
30 |
|
31 |
So hal wants the user to be permanently registered for plugdev, as |
32 |
opposed to simply added based on console login. |
33 |
|
34 |
FWIW, console based perms (as with pam and /etc/security/console.perms, |
35 |
when it used to default to active) never worked right here, anyway, due |
36 |
to the way I use the system. Most of the time when I'm logged in to X, |
37 |
it's not considered a console login, because I login at the text |
38 |
terminal, then run a script that starts X and KDE, waits a few seconds, |
39 |
and logs me out at the console. This always resulted in all sorts of |
40 |
stuff including sound seldom working right, since it would be active |
41 |
while I was logged in at the text console, but I was logged out of it |
42 |
most of the time when I was in X/KDE. I ended up setting permissions and |
43 |
groups such that my user had general access to sound and whatever other |
44 |
devices, regardless of console login status, because the system seemed to |
45 |
think I was logged out most of the time. |
46 |
|
47 |
-- |
48 |
Duncan - List replies preferred. No HTML msgs. |
49 |
"Every nonfree program has a lord, a master -- |
50 |
and if you use the program, he is your master." Richard Stallman |
51 |
|
52 |
-- |
53 |
gentoo-desktop@g.o mailing list |