Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Important problem: updating "environment" ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
danzvash
n00b
n00b


Joined: 01 May 2002
Posts: 62
Location: London, UK

PostPosted: Fri Feb 14, 2003 12:48 pm    Post subject: Important problem: updating "environment" ? Reply with quote

I am looking for an answer to what seems to be quite a prevalent issue.

Quite often I configure software for a particular purpose, only to find that things do not work until I open another terminal, restart X or switch to a virtual console.

Example: today, on a newly installed Gentoo 1.4_rc2 box, I configured alsa and all things necessary to get sound working. I did this inside a basic X session. As root, I was then able to cat a soundfile to /dev/dsp. But as user, I was unable (due to "Permission denied"), despite the fact that I:

- had added my user to secondary group "audio"
- had devfsd.conf and alsa configured exactly as per the Gentoo ALSA guide
- all sound modules loaded fine thanks to /etc/init.d/alsasound

I already have checked all the stuff in threads like
https://forums.gentoo.org/viewtopic.php?t=5937


The clue is that when in a terminal in this X-session, I type "groups", I get:

Code:
# groups
users


but I know that I am already added to "wheel" and "audio"!

BUT if I change to a virtual console, I get

Code:
 # groups
users wheel audio


QUESTION: How do I refresh the current X-session or console, such that all group permissions (and I imagine many other system settings) are brought to their up-to-date settings?

env-update doesn't do it. Any clues?
Back to top
View user's profile Send private message
rtn
Guru
Guru


Joined: 15 Nov 2002
Posts: 427

PostPosted: Fri Feb 14, 2003 3:20 pm    Post subject: Reply with quote

I don't think you can, the group permissions are only set on login.

--rtn
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Fri Feb 14, 2003 6:22 pm    Post subject: Reply with quote

Code:
$ newgrp -

_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
danzvash
n00b
n00b


Joined: 01 May 2002
Posts: 62
Location: London, UK

PostPosted: Mon Feb 17, 2003 10:39 am    Post subject: Reply with quote

Aaah. Group permissions being updated. I suppose in real terms this means updating some kernel tables or other. Maybe to learn more I should look at source code for "login" and "newgrp" commands . . ?

Thanks for these pointers.
Back to top
View user's profile Send private message
magisk
n00b
n00b


Joined: 10 Feb 2003
Posts: 44
Location: Haugesund, Norway

PostPosted: Wed Feb 19, 2003 12:43 pm    Post subject: Reply with quote

My guess would be env-update or source /etc/profiles but that migth be wrong.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Wed Feb 19, 2003 4:26 pm    Post subject: Reply with quote

I've had instances where newgrp - didn't work.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum