* [gentoo-user] User group problem
@ 2006-04-11 6:34 Anthony E. Caudel
2006-04-11 7:11 ` Zac Slade
0 siblings, 1 reply; 6+ messages in thread
From: Anthony E. Caudel @ 2006-04-11 6:34 UTC (permalink / raw
To: Gentoo mailing list
I sometimes have to add my user to a group. This of course doesn't take
effect until I log out and back in. However, if I'm under X, I can't
logout without first exiting X.
So, I'm wondering if there is any way to re-log the user without exiting X?
Tony
--
Those who would give up essential Liberty, to purchase a little temporary
Safety, deserve neither Liberty nor Safety.
-- Benjamin Franklin
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] User group problem
2006-04-11 6:34 [gentoo-user] User group problem Anthony E. Caudel
@ 2006-04-11 7:11 ` Zac Slade
2006-04-11 17:57 ` Anthony E. Caudel
0 siblings, 1 reply; 6+ messages in thread
From: Zac Slade @ 2006-04-11 7:11 UTC (permalink / raw
To: gentoo-user
On Tuesday 11 April 2006 01:34, Anthony E. Caudel wrote:
> I sometimes have to add my user to a group. This of course doesn't take
> effect until I log out and back in. However, if I'm under X, I can't
> logout without first exiting X.
>
> So, I'm wondering if there is any way to re-log the user without exiting X?
Not really. (please someone correct me if I'm wrong)
However, if you are using a terminal to launch an application and using "bash
-l" for that terminal application then anything you start will show the new
group.
If you are instead just launching from the applications menu in your desktop
(kde, gnome, blackbox) then you have to log out of X then log back in.
--
Zac Slade
krakrjak@volumehost.net
ICQ:1415282 YM:krakrjak AIM:ttyp99
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] User group problem
2006-04-11 7:11 ` Zac Slade
@ 2006-04-11 17:57 ` Anthony E. Caudel
2006-04-13 21:43 ` Zac Slade
0 siblings, 1 reply; 6+ messages in thread
From: Anthony E. Caudel @ 2006-04-11 17:57 UTC (permalink / raw
To: gentoo-user
Zac Slade wrote:
> On Tuesday 11 April 2006 01:34, Anthony E. Caudel wrote:
>
>>I sometimes have to add my user to a group. This of course doesn't take
>>effect until I log out and back in. However, if I'm under X, I can't
>>logout without first exiting X.
>>
>>So, I'm wondering if there is any way to re-log the user without exiting X?
>
> Not really. (please someone correct me if I'm wrong)
>
> However, if you are using a terminal to launch an application and using "bash
> -l" for that terminal application then anything you start will show the new
> group.
>
> If you are instead just launching from the applications menu in your desktop
> (kde, gnome, blackbox) then you have to log out of X then log back in.
Maybe I'm not doing something right. From KDE's konsole, I invoked a
new shell with "bash -l" and then ran "id" but it did not reflect the
new group.
Tony
--
Those who would give up essential Liberty, to purchase a little temporary
Safety, deserve neither Liberty nor Safety.
-- Benjamin Franklin
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] User group problem
2006-04-11 17:57 ` Anthony E. Caudel
@ 2006-04-13 21:43 ` Zac Slade
2006-04-13 21:53 ` Dan LaMotte
0 siblings, 1 reply; 6+ messages in thread
From: Zac Slade @ 2006-04-13 21:43 UTC (permalink / raw
To: gentoo-user
On Tuesday 11 April 2006 12:57, Anthony E. Caudel wrote:
> Maybe I'm not doing something right. From KDE's konsole, I invoked a
> new shell with "bash -l" and then ran "id" but it did not reflect the
> new group.
No you did nothing wrong. I double checked it and it's as I feared. You have
to log out and back in for the changes to be reflected. Any new logins will
reflect the group change, but not existing ones. If you ssh into your
system that login will reflect the new group, just as if you logged out and
back into X the changes will be reflected.
This is a shortcoming of the Unix strategy for dealing with users. They are
immutable after they log in.
--
Zac Slade
krakrjak@volumehost.net
ICQ:1415282 YM:krakrjak AIM:ttyp99
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] User group problem
2006-04-13 21:43 ` Zac Slade
@ 2006-04-13 21:53 ` Dan LaMotte
2006-04-14 4:58 ` Anthony E. Caudel
0 siblings, 1 reply; 6+ messages in thread
From: Dan LaMotte @ 2006-04-13 21:53 UTC (permalink / raw
To: gentoo-user
You can do
% newgrp <groupname>
and the shell that it is executed in will then show the change.
% groups
will prove that you are in the group currently.
But in order for new terminals that you spawn from an X session to have
the new group you must log out and log back in. That is correct.
# - dan lamotte - - lamotte {at} cs.umn.edu - #####
## - systems staff - - uofm - - cs department - ####
### fpr: 690F C162 4AE5 F85F FE94 88E5 D123 FBAC 0852 A280 ###
Zac Slade wrote:
> On Tuesday 11 April 2006 12:57, Anthony E. Caudel wrote:
>> Maybe I'm not doing something right. From KDE's konsole, I invoked a
>> new shell with "bash -l" and then ran "id" but it did not reflect the
>> new group.
> No you did nothing wrong. I double checked it and it's as I feared. You have
> to log out and back in for the changes to be reflected. Any new logins will
> reflect the group change, but not existing ones. If you ssh into your
> system that login will reflect the new group, just as if you logged out and
> back into X the changes will be reflected.
>
> This is a shortcoming of the Unix strategy for dealing with users. They are
> immutable after they log in.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] User group problem
2006-04-13 21:53 ` Dan LaMotte
@ 2006-04-14 4:58 ` Anthony E. Caudel
0 siblings, 0 replies; 6+ messages in thread
From: Anthony E. Caudel @ 2006-04-14 4:58 UTC (permalink / raw
To: gentoo-user
Bummer!
Thanks, guys.
Tony
Dan LaMotte wrote:
> You can do
>
> % newgrp <groupname>
>
> and the shell that it is executed in will then show the change.
>
> % groups
>
> will prove that you are in the group currently.
>
> But in order for new terminals that you spawn from an X session to have
> the new group you must log out and log back in. That is correct.
>
> # - dan lamotte - - lamotte {at} cs.umn.edu - #####
> ## - systems staff - - uofm - - cs department - ####
> ### fpr: 690F C162 4AE5 F85F FE94 88E5 D123 FBAC 0852 A280 ###
>
>
> Zac Slade wrote:
>
>>On Tuesday 11 April 2006 12:57, Anthony E. Caudel wrote:
>>
>>>Maybe I'm not doing something right. From KDE's konsole, I invoked a
>>>new shell with "bash -l" and then ran "id" but it did not reflect the
>>>new group.
>>
>>No you did nothing wrong. I double checked it and it's as I feared. You have
>>to log out and back in for the changes to be reflected. Any new logins will
>>reflect the group change, but not existing ones. If you ssh into your
>>system that login will reflect the new group, just as if you logged out and
>>back into X the changes will be reflected.
>>
>>This is a shortcoming of the Unix strategy for dealing with users. They are
>>immutable after they log in.
--
Those who would give up essential Liberty, to purchase a little temporary
Safety, deserve neither Liberty nor Safety.
-- Benjamin Franklin
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-04-14 5:03 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-11 6:34 [gentoo-user] User group problem Anthony E. Caudel
2006-04-11 7:11 ` Zac Slade
2006-04-11 17:57 ` Anthony E. Caudel
2006-04-13 21:43 ` Zac Slade
2006-04-13 21:53 ` Dan LaMotte
2006-04-14 4:58 ` Anthony E. Caudel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox