/etc/profile.d/ is where you can configure global environment settings. just add the items you want into a file like <MY_COMPANY>.sh <MY_COMPANY>.csh make sure they are chmod 755 and when your users login they get the specifics. BTW only use root to configure your system use a standard user for general use. Using root is a bad habit. Don't fall into this habit as it will bite you in the butt. Setup /etc/sudoers they say to use visudo but I find pico works just fine for editing this file.
-----Original Message----- From: Jianping Zhu [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 2:25 PM To: Arthur H. Johnson II Cc: [EMAIL PROTECTED] Subject: Re: how to set evn path It works, Thank you very much. One additional qustion is that: I am also root user, can I set the env in some way (do some thing to the .bash_prifile in root directory i guess)so every ordinay user can use java compiler form her home directory. Thanks On 6 Mar 2002, Arthur H. Johnson II wrote: > You line: > > PATH=$PATH:$HOME/bin /usr/java/bin > > Should read: > > export PATH=$PATH:$HOME/bin:/usr/java/bin > > On Wed, 2002-03-06 at 14:04, Jianping Zhu wrote: > > I have java install in usr/java directory, (javac and java in > > /usr/java/bin) how can modify .bash_profile in /home/jzhu so I can use > > javac and java in /home/jzhu? > > > > in fact I add this line in the .bash_profile > > PATH=$PATH:$HOME/bin /usr/java/bin > > > > but it does not work. > > > > Any advice appreciated. > > > > > > > > -------------------------------- > > Jianping Zhu > > Department of Computer Science > > Univerity of Georgia > > Athens, GA 30602 > > Tel 706 5423900 > > -------------------------------- > > > > > > > > _______________________________________________ > > Redhat-list mailing list > > [EMAIL PROTECTED] > > https://listman.redhat.com/mailman/listinfo/redhat-list > -- > Arthur H. Johnson II > The Linux Box > http://www.linuxbox.nu > [EMAIL PROTECTED] > > > > _______________________________________________ > Redhat-list mailing list > [EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list > -------------------------------- Jianping Zhu Department of Computer Science Univerity of Georgia Athens, GA 30602 Tel 706 5423900 -------------------------------- _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list