* [gentoo-user] source /etc/profile valid for all current and future sessions
@ 2006-11-03 12:18 Marco Calviani
2006-11-03 13:08 ` Alan McKinnon
2006-11-03 13:22 ` [gentoo-user] " F.J.Zhao
0 siblings, 2 replies; 4+ messages in thread
From: Marco Calviani @ 2006-11-03 12:18 UTC (permalink / raw
To: gentoo-user
Hi list,
i have a question regarding the use of global environmental
variables: as root i've changed some variables inside /etc/env.d. I've
updated the database with env-update and sourced them with source
/etc/profile. For this changes to become available to all users i have
to issue a source /etc/profile for every users AND also for future
sessions. The changes become "standard" only if i reboot the machine.
How is it possible to perform this changes for every users without rebooting?
Thanks in advance,
MC
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] source /etc/profile valid for all current and future sessions
2006-11-03 12:18 [gentoo-user] source /etc/profile valid for all current and future sessions Marco Calviani
@ 2006-11-03 13:08 ` Alan McKinnon
2006-11-03 13:41 ` Marco Calviani
2006-11-03 13:22 ` [gentoo-user] " F.J.Zhao
1 sibling, 1 reply; 4+ messages in thread
From: Alan McKinnon @ 2006-11-03 13:08 UTC (permalink / raw
To: gentoo-user
On Friday 03 November 2006 14:18, Marco Calviani wrote:
> Hi list,
> i have a question regarding the use of global environmental
> variables: as root i've changed some variables inside /etc/env.d.
> I've updated the database with env-update and sourced them with
> source /etc/profile. For this changes to become available to all
> users i have to issue a source /etc/profile for every users AND also
> for future sessions. The changes become "standard" only if i reboot
> the machine. How is it possible to perform this changes for every
> users without rebooting?
I think you misunderstand the shell start up sequence, a reboot has
nothing to do with this topic at all.
If a setting is in /etc/profile then it will be used for every *new*
session for every user from here on out.
You only have to source /etc/profile in sessions that are already
running when you change any of the shell start up files.
alan
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-user] Re: source /etc/profile valid for all current and future sessions
2006-11-03 12:18 [gentoo-user] source /etc/profile valid for all current and future sessions Marco Calviani
2006-11-03 13:08 ` Alan McKinnon
@ 2006-11-03 13:22 ` F.J.Zhao
1 sibling, 0 replies; 4+ messages in thread
From: F.J.Zhao @ 2006-11-03 13:22 UTC (permalink / raw
To: gentoo-user
Logout and login, you will find the changes have become "standard".
That's because login bash shell will read /etc/profile first.
2006/11/3, Marco Calviani <marco.calviani@gmail.com>:
> Hi list,
> i have a question regarding the use of global environmental
> variables: as root i've changed some variables inside /etc/env.d. I've
> updated the database with env-update and sourced them with source
> /etc/profile. For this changes to become available to all users i have
> to issue a source /etc/profile for every users AND also for future
> sessions. The changes become "standard" only if i reboot the machine.
> How is it possible to perform this changes for every users without
> rebooting?
>
> Thanks in advance,
> MC
> --
> gentoo-user@gentoo.org mailing list
>
>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] source /etc/profile valid for all current and future sessions
2006-11-03 13:08 ` Alan McKinnon
@ 2006-11-03 13:41 ` Marco Calviani
0 siblings, 0 replies; 4+ messages in thread
From: Marco Calviani @ 2006-11-03 13:41 UTC (permalink / raw
To: gentoo-user
Hi Alan,
well, sorry to all, it was my fault. you're completely right.
Regards,
mc
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-11-03 13:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-03 12:18 [gentoo-user] source /etc/profile valid for all current and future sessions Marco Calviani
2006-11-03 13:08 ` Alan McKinnon
2006-11-03 13:41 ` Marco Calviani
2006-11-03 13:22 ` [gentoo-user] " F.J.Zhao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox