1 |
I decided to create a one-user group, as used to be the default with |
2 |
RedHat. So, I issued |
3 |
root $ groupadd jorge |
4 |
Then: |
5 |
root $ usermod -g jorge jorge |
6 |
(I want this to be my default group.) |
7 |
/etc/passwd reflects the changes: |
8 |
jorge $ cat /etc/passwd|grep jorge |
9 |
jorge:x:1000:409::/home/jorge:/bin/bash |
10 |
(409 is the number of the new group) |
11 |
However: |
12 |
jorge $ cat /etc/group|grep jorge |
13 |
wheel:x:10:root,jorge |
14 |
audio:x:18:jorge |
15 |
video:x:27:root,jorge |
16 |
users:x:100:games,jorge |
17 |
portage:x:250:portage,jorge |
18 |
And: |
19 |
jorge $ groups |
20 |
wheel audio video users portage |
21 |
|
22 |
jorge $ id |
23 |
uid=1000(jorge) gid=100(users) |
24 |
groups=10(wheel),18(audio),27(video),100(users),250(portage) |
25 |
|
26 |
I edited /etc/group with vigr to add user jorge to group jorge. Still, |
27 |
id and groups give outdated output... |
28 |
|
29 |
Wasn't usermod supposed to deal with this? |
30 |
I env-update'd (as root) and sourced /etc/profile (as jorge), for good |
31 |
measure. |
32 |
|
33 |
(When I login to a vt, the new group is recognized as the default group, |
34 |
so I'm guessing the "id" and "groups" issue has to do with the login or |
35 |
no login shell matter, something I never really understood; but what |
36 |
about the need to edit /etc/group?) |
37 |
-- |
38 |
Jorge Almeida |
39 |
-- |
40 |
gentoo-user@g.o mailing list |