Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

set PATH for all users

65 views
Skip to first unread message

yih...@gmail.com

unread,
Apr 6, 2006, 3:48:37 PM4/6/06
to
Hi,

I am using Linux and I normally setup the PATH environment variables
through .bash_profile for one specific user. If I want to set up some
path for all user, how to do it?

For example, I want to set JAVA_HOME for all user, so each of them do
not have to setup in their own .bash_profile file under their home dir.
Is there a way to do this?

Thanks

David

Message has been deleted

thabi...@gmail.com

unread,
Oct 15, 2012, 10:40:29 AM10/15/12
to
i also have the same problem i want setup the path environment variables for all users if there is anyone who can help please help us

thabi...@gmail.com

unread,
Oct 15, 2012, 10:41:19 AM10/15/12
to
On Thursday, April 6, 2006 9:48:37 PM UTC+2, yih...@gmail.com wrote:

Mirko K.

unread,
Oct 15, 2012, 11:14:27 AM10/15/12
to
/etc/profile

Thomas 'PointedEars' Lahn

unread,
Oct 15, 2012, 1:51:18 PM10/15/12
to
Mirko K. wrote:
^^^^^^^^
Who?
But, as can be read in the bash(1) manpage, /etc/profile will only be
sourced "When bash is invoked as an interactive login shell, or as a non-
interactive shell with the --login option".

Did you notice the date of the original posting?

--
PointedEars

Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

Mirko K.

unread,
Oct 15, 2012, 2:10:47 PM10/15/12
to
Thomas 'PointedEars' Lahn wrote:

> Mirko K. wrote:
> ^^^^^^^^
> Who?

Mirko Kah (or Kay as the English speakers say it) :-)

Please don't play this game with me. I know your (and Zuckerberg/Schmidt's)
argument regarding this, and I don't agree. Aside from that, I'll tell you
my name, if you show me a notarially certified copy of your ID card. :-)

>> thabi...@gmail.com wrote:
>>> On Thursday, April 6, 2006 9:48:37 PM UTC+2, yih...@gmail.com wrote:
>>>> I am using Linux and I normally setup the PATH environment variables
>>>> through .bash_profile for one specific user. If I want to set up some
>>>> path for all user, how to do it?
>>>>
>>>> For example, I want to set JAVA_HOME for all user, so each of them do
>>>> not have to setup in their own .bash_profile file under their home dir.
>>>> Is there a way to do this?
>>>>
>>>> Thanks
>>>>
>>>> David
>>>
>>> i also have the same problem i want setup the path environment variables
>>> for all users if there is anyone who can help please help us
>>
>> /etc/profile
>
> But, as can be read in the bash(1) manpage, /etc/profile will only be
> sourced "When bash is invoked as an interactive login shell, or as a non-
> interactive shell with the --login option".

Yes, and? So is ~/.bash_profile. Where would you put it?

> Did you notice the date of the original posting?

No, I overlooked that. Sorry.


Thomas 'PointedEars' Lahn

unread,
Oct 15, 2012, 2:18:53 PM10/15/12
to
Mirko K. wrote:

> Thomas 'PointedEars' Lahn wrote:
>> Mirko K. wrote:
>> ^^^^^^^^
>> Who?
>
> Mirko Kah (or Kay as the English speakers say it) :-)

Oh, you are so funny. NOT.

> Please don't play this game with me. I know your (and
> Zuckerberg/Schmidt's) argument regarding this, and I don't agree. Aside
> from that, I'll tell you my name, if you show me a notarially certified
> copy of your ID card. :-)

I have not the faintest idea who Zuckerberg and Schmidt are (unless you are
talking about Mark Zuckerberg and Eric Schmidt, but then I would have never
heard about their argument and I could not care less), but rest assured that
a "f*ck-off" reply to requests for *basic politeness* like this will quickly
land you in Usenet¹ in many score-/killfiles where you do actually not want
to be in. Mine included.

_____
¹ Do you know where you are posting to?

>>> thabi...@gmail.com wrote:
>>>> On Thursday, April 6, 2006 9:48:37 PM UTC+2, yih...@gmail.com wrote:
>>>>> I am using Linux and I normally setup the PATH environment variables
>>>>> through .bash_profile for one specific user. If I want to set up some
>>>>> path for all user, how to do it?
>>>>>
>>>>> For example, I want to set JAVA_HOME for all user, so each of them do
>>>>> not have to setup in their own .bash_profile file under their home
>>>>> dir. Is there a way to do this?
>>>>
>>>> i also have the same problem i want setup the path environment
>>>> variables for all users if there is anyone who can help please help us
>>>
>>> /etc/profile
>>
>> But, as can be read in the bash(1) manpage, /etc/profile will only be
>> sourced "When bash is invoked as an interactive login shell, or as a non-
>> interactive shell with the --login option".
>
> Yes, and? So is ~/.bash_profile. Where would you put it?

Exactly there, but for *all* (bash) users, as per the OP's requirement,
I would also source /etc/profile in /etc/bash.bashrc if the shell is
interactive, so that it also applies to interactive *non-login* shells.
As several Linux distributions do by default. RTFM.

Mirko K.

unread,
Oct 15, 2012, 2:46:48 PM10/15/12
to
Thomas 'PointedEars' Lahn wrote:

> assured that a "f*ck-off" reply to requests for *basic politeness* like

Sorry, but whenever I see you talk about politeness I just have to chuckle.
It wasn't a "FO" reply, that's just your own aggression reflected on me. It
was a friendly "No, thanks." reply.

> this will quickly land you in Usenet¹ in many score-/killfiles where you
> do actually not want
> to be in. Mine included.

Oh, I have no problem being in your killfile (and all other people who are
more interested in my name (or an authentic sounding one at least) than in
my words.)

Just beware that I don't plonk you first.

_____
> ¹ Do you know where you are posting to?

Is it this cloud thing that I heard so much about?

>>> But, as can be read in the bash(1) manpage, /etc/profile will only be
>>> sourced "When bash is invoked as an interactive login shell, or as a
>>> non- interactive shell with the --login option".
>>
>> Yes, and? So is ~/.bash_profile. Where would you put it?
>
> Exactly there, but for *all* (bash) users, as per the OP's requirement,
> I would also source /etc/profile in /etc/bash.bashrc if the shell is
> interactive, so that it also applies to interactive *non-login* shells.
> As several Linux distributions do by default. RTFM.

Right. Next time please add your contribution directly, instead of making
people to drag out of your nose what you have to gripe this time.

Good by.

Thomas 'PointedEars' Lahn

unread,
Oct 15, 2012, 5:50:04 PM10/15/12
to
Mirko K. wrote:

> Thomas 'PointedEars' Lahn wrote:
>> assured that a "f*ck-off" reply to requests for *basic politeness* like
>
> Sorry, but whenever I see you talk about politeness I just have to
> chuckle. It wasn't a "FO" reply, that's just your own aggression reflected
> on me. It was a friendly "No, thanks." reply.

Rest assured you have not seen me aggressive yet. Your reply was in essence
an "I don't care about the people here" reply and you know it.

> […]
> Just beware that I don't plonk you first.

Am I supposed to be grateful now to be not plonked by a pseudo-anonymous
nobody?

> _____
>> ¹ Do you know where you are posting to?
>
> Is it this cloud thing that I heard so much about?

No. (You must be trolling.)

>>>> But, as can be read in the bash(1) manpage, /etc/profile will only be
>>>> sourced "When bash is invoked as an interactive login shell, or as a
>>>> non- interactive shell with the --login option".
>>>
>>> Yes, and? So is ~/.bash_profile. Where would you put it?
>>
>> Exactly there, but for *all* (bash) users, as per the OP's requirement,
>> I would also source /etc/profile in /etc/bash.bashrc if the shell is
>> interactive, so that it also applies to interactive *non-login* shells.
>> As several Linux distributions do by default. RTFM.
>
> Right. Next time please add your contribution directly, instead of making
> people to drag out of your nose what you have to gripe this time.

I have automatically killfiled the original poster because they use Google
Groups, and I have made a comment to your posting (whom I had not scorefiled
at the time), not his, because your answer was incomplete. Who do you think
you are telling me what to do? Go away.

> Good by.

By what? (If you want to lecture people using English, you should learn
English first.)

--
PointedEars

Mirko K.

unread,
Oct 15, 2012, 6:28:36 PM10/15/12
to
Thomas 'PointedEars' Lahn wrote:

> Rest assured you have not seen me aggressive yet. Your reply was in
> essence an "I don't care about the people here" reply and you know it.

I don't care about *you*.

> Am I supposed to be grateful now to be not plonked by a pseudo-anonymous
> nobody?

Very polite. *chuckle*

Anyway, be grateful or not, I don't care.

> No. (You must be trolling.)

Look up sarcasm. (You really think that a Knode user doesn't know what
Usenet is?)

> Who do you think you are telling me what to do?

Here we see the core of your (Usenet-/online-) personallity, right? Attack
(Usenet-)newcommers over some minor netiquette violation, and when they
backfire, you freak out whether they can even dare to make a stand against
the big, great, oh-so-important, holy Master Of Usenet, Thomas Lahn.

>> Good by.
>
> By what? (If you want to lecture people using English, you should learn
> English first.)

Im sure mei post's kontain mor serius erors then an misssplaced spacee.

Anyway, your behaviour is too much disturbing, too much wrecked, too
arrogant, and too much self-righteous for my taste.

Goodby and farewell.

*plonk*

Thomas 'PointedEars' Lahn

unread,
Oct 16, 2012, 12:43:43 PM10/16/12
to Mirko K.
[Posted & mailed]

Mirko K. wrote:

> Thomas 'PointedEars' Lahn wrote:
>> No. (You must be trolling.)
>
> Look up sarcasm. (You really think that a Knode user doesn't know what
> Usenet is?)

Evidently *you* don't.

>> Who do you think you are telling me what to do?
>
> Here we see the core of your (Usenet-/online-) personallity, right? Attack
> (Usenet-)newcommers over some minor netiquette violation, and when they
> backfire, you freak out whether they can even dare to make a stand against
> the big, great, oh-so-important, holy Master Of Usenet, Thomas Lahn.

I have been lenient towards you because apparently you are new to Usenet.
I would have killfiled any other person behaving as rude as you immediately.

This is your last chance. Go to the "Hilfe"/"Help" menu of your KNode/4.9.2
newsreader and select the "Handbuch zu KNode"/"KNode Manual". Read Chapter
5 (Usenet introduction) carefully. You should not post again in any
newsgroup again until you have fully understood and are willing to apply
what is written there. You might also want to read and you should better
apply the posting guidelines of your news service provider, eternal-
september.org.

F'up2 poster

--
PointedEars

Eric

unread,
Oct 16, 2012, 3:32:24 PM10/16/12
to
On 2012-10-15, Mirko K. <mirkok...@googlemail.com> wrote:
> Thomas 'PointedEars' Lahn wrote:
<snip>
>>> Good by.
>>
>> By what? (If you want to lecture people using English, you should learn
>> English first.)
>
> Im sure mei post's kontain mor serius erors then an misssplaced spacee.
>
> Anyway, your behaviour is too much disturbing, too much wrecked, too
> arrogant, and too much self-righteous for my taste.
>
> Goodby and farewell.

Sadly, the word you are using is spelled "Goodbye", so your error was
not a misplaced space.

On the other hand, I find it amusing that you should be criticised for
your mistake by someone whose own use of English is not always correct.

Eric
--

ms fnd in a lbry

Mirko K.

unread,
Oct 16, 2012, 4:25:03 PM10/16/12
to
Eric wrote:

> Sadly, the word you are using is spelled "Goodbye", so your error was
> not a misplaced space.
>
> On the other hand, I find it amusing that you should be criticised for
> your mistake by someone whose own use of English is not always correct.
>
> Eric

Damn! Now that's one kind of a blunder! And it's not the first time I write
that one wrong, gnnn. Thanks for pointing this out. :-D

At least Tommy's, for lack of a better word, "bullying" now caused something
useful. That spelling will certainly stick now.

Anyway, I leave it at that, and stop bothering about this particular topic.
:-)

(Tommy, feel free wasting your time with a reply, here or by email. The
plonk has been extended to email as well.)


Dr J R Stockton

unread,
Oct 17, 2012, 1:36:24 PM10/17/12
to
In comp.unix.shell message <3479472.k...@PointedEars.de>, Tue, 16
Oct 2012 18:43:43, Thomas 'PointedEars' Lahn <Point...@web.de>
posted:

>[Posted & mailed]
>
>Mirko K. wrote:
>
>> Thomas 'PointedEars' Lahn wrote:
>>> No. (You must be trolling.)
>>
>> Look up sarcasm. (You really think that a Knode user doesn't know what
>> Usenet is?)
>
>Evidently *you* don't.
>
>>> Who do you think you are telling me what to do?
>>
>> Here we see the core of your (Usenet-/online-) personallity, right? Attack
>> (Usenet-)newcommers over some minor netiquette violation, and when they
>> backfire, you freak out whether they can even dare to make a stand against
>> the big, great, oh-so-important, holy Master Of Usenet, Thomas Lahn.
>
>I have been lenient towards you because apparently you are new to Usenet.
>I would have killfiled any other person behaving as rude as you immediately.

In that case you should have killed yourself long ago.

--
(c) John Stockton, nr London UK. replyYYWW merlyn demon co uk Turnpike 6.05.
Web <http://www.uwasa.fi/~ts/http/tsfaq.html> -> Timo Salmi: Usenet Q&A.
Web <http://www.merlyn.demon.co.uk/news-use.htm> : about usage of News.
No Encoding. Quotes precede replies. Snip well. Write clearly. Mail no News.

Kaz Kylheku

unread,
Oct 17, 2012, 7:51:38 PM10/17/12
to
On 2012-10-16, Thomas 'PointedEars' Lahn <Point...@web.de> wrote:
> I have been lenient towards you because apparently you are new to Usenet.
> I would have killfiled any other person behaving as rude as you immediately.

From where I'm sitting, you're bullying some person who isn't following
1980's Usenet netiquette of using one's full name.

Is that correct?

That is outdated, I'm afraid. Many people do not use their real names. Not on
Usenet, not on "social networking" sites. It is from an era when the Internet
and Usenet were only between universities and a handful of high tech
institutions.

Real names do not matter when the communication is not personal. WHAT is said
is much more important than WHO says it.

If someone called "Mirko K." says a fact, that is either correct or incorrect,
and his surname, or geographic location, or passport number, do not help
or hinder that in any way.

Some names do not identify anyone properly, like John Smith.

I just went to an online phone book search <http://www.phonebookofgermany.com/>
Three individuals are listed named Thomas Lahn, and it appears in one business
name.

The major name-related Usenet netiquette violation nowadays is *changing* one's
name to evade kill filters (for the purposes of perpetrating trolling).

> This is your last chance.

Last chance for what? Being read and harassed by you? LOL.

Thomas 'PointedEars' Lahn

unread,
Oct 24, 2012, 2:25:42 PM10/24/12
to
Kaz Kylheku wrote:

> On 2012-10-16, Thomas 'PointedEars' Lahn <Point...@web.de> wrote:
>> I have been lenient towards you because apparently you are new to Usenet.
>> I would have killfiled any other person behaving as rude as you
>> immediately.
>
> From where I'm sitting, you're bullying some person who isn't following
> 1980's Usenet netiquette of using one's full name.
>
> Is that correct?

No. Go away.

--
PointedEars

Dr J R Stockton

unread,
Oct 25, 2012, 2:36:37 PM10/25/12
to
In comp.unix.shell message <2287205.8...@PointedEars.de>, Wed, 24
Oct 2012 20:25:42, Thomas 'PointedEars' Lahn <Point...@web.de>
posted:
When, wherever one goes, one finds that people consider one to be a
really nasty person, one should carefully consider the hypothesis that,
in fact, one is indeed a really nasty person. Be guided by the works of
the esteemed Kai Lung.

--
(c) John Stockton, nr London UK. ??@merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <URL:http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms
Dates - miscdate.htm Year 2000 - date2000.htm Critical Dates - critdate.htm
Euro computing - european.htm UK Y2k mini-FAQ: y2k_mfaq.txt Don't Mail News
0 new messages