Gentoo Archives: gentoo-user

From: Alan McKinnon <alan@××××××××××××××××.za>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] gpasswd
Date: Thu, 06 Sep 2007 17:51:34
Message-Id: 200709061927.33130.alan@linuxholdings.co.za
In Reply to: [gentoo-user] gpasswd by Robert Walter
1 On Thursday 06 September 2007, Robert Walter wrote:
2 > hi
3 > i've added myself to the vboxusers group with "gpasswd -a robert
4 > vboxusers". when i do a "id robert" with root i see the added group
5 > but when i start a new xterm with user robert i'm still not added to
6 > the new group. how do i make the changes take effekt without
7 > logout/login?
8 > i thought there was a command but i can't remember nor find one :(
9 > best regards. robert
10
11 You have to either
12
13 a) log out and log in, or
14 b) start a new *login* session with 'su - <username>', or
15 c) source your profile in *each* open shell
16
17 this works because your config settings are re-read from scratch each
18 time. Opening an xterm doesn't work as it does not start a new login
19 shell - you are alredy logged in, so when the shell starts in the
20 terminal it starts as a non-login shell
21
22 alan
23
24 --
25 Optimists say the glass is half full,
26 Pessimists say the glass is half empty,
27 Developers say wtf is the glass twice as big as it needs to be?
28
29 Alan McKinnon
30 alan at linuxholdings dot co dot za
31 +27 82, double three seven, one nine three five
32 --
33 gentoo-user@g.o mailing list