View previous topic :: View next topic |
Author |
Message |
danzvash n00b
Joined: 01 May 2002 Posts: 62 Location: London, UK
|
Posted: Fri Feb 14, 2003 12:48 pm Post subject: Important problem: updating "environment" ? |
|
|
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:
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 |
|
|
rtn Guru
Joined: 15 Nov 2002 Posts: 427
|
Posted: Fri Feb 14, 2003 3:20 pm Post subject: |
|
|
I don't think you can, the group permissions are only set on login.
--rtn |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Fri Feb 14, 2003 6:22 pm Post subject: |
|
|
_________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
danzvash n00b
Joined: 01 May 2002 Posts: 62 Location: London, UK
|
Posted: Mon Feb 17, 2003 10:39 am Post subject: |
|
|
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 |
|
|
magisk n00b
Joined: 10 Feb 2003 Posts: 44 Location: Haugesund, Norway
|
Posted: Wed Feb 19, 2003 12:43 pm Post subject: |
|
|
My guess would be env-update or source /etc/profiles but that migth be wrong. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Wed Feb 19, 2003 4:26 pm Post subject: |
|
|
I've had instances where newgrp - didn't work. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
|