* [gentoo-user] usermod broken?
@ 2005-11-02 23:21 Jorge Almeida
2005-11-03 2:26 ` [gentoo-user] " Tim Kruse
0 siblings, 1 reply; 2+ messages in thread
From: Jorge Almeida @ 2005-11-02 23:21 UTC (permalink / raw
To: gentoo-user
I decided to create a one-user group, as used to be the default with
RedHat. So, I issued
root $ groupadd jorge
Then:
root $ usermod -g jorge jorge
(I want this to be my default group.)
/etc/passwd reflects the changes:
jorge $ cat /etc/passwd|grep jorge
jorge:x:1000:409::/home/jorge:/bin/bash
(409 is the number of the new group)
However:
jorge $ cat /etc/group|grep jorge
wheel:x:10:root,jorge
audio:x:18:jorge
video:x:27:root,jorge
users:x:100:games,jorge
portage:x:250:portage,jorge
And:
jorge $ groups
wheel audio video users portage
jorge $ id
uid=1000(jorge) gid=100(users)
groups=10(wheel),18(audio),27(video),100(users),250(portage)
I edited /etc/group with vigr to add user jorge to group jorge. Still,
id and groups give outdated output...
Wasn't usermod supposed to deal with this?
I env-update'd (as root) and sourced /etc/profile (as jorge), for good
measure.
(When I login to a vt, the new group is recognized as the default group,
so I'm guessing the "id" and "groups" issue has to do with the login or
no login shell matter, something I never really understood; but what
about the need to edit /etc/group?)
--
Jorge Almeida
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 2+ messages in thread
* [gentoo-user] Re: usermod broken?
2005-11-02 23:21 [gentoo-user] usermod broken? Jorge Almeida
@ 2005-11-03 2:26 ` Tim Kruse
0 siblings, 0 replies; 2+ messages in thread
From: Tim Kruse @ 2005-11-03 2:26 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 323 bytes --]
* On 02.11.2005 Jorge Almeida wrote:
> I edited /etc/group with vigr to add user jorge to group jorge. Still,
> id and groups give outdated output...
The changes do not affect existing sessions. You have to relogin
first.
So long,
tkr
--
You get along very well with everyone except animals and people.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-11-03 2:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-02 23:21 [gentoo-user] usermod broken? Jorge Almeida
2005-11-03 2:26 ` [gentoo-user] " Tim Kruse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox