hi
how can i set the path variable for all the users using the bash shell to add a directory say /opt/java/bin. i know how to set the path for individual users through .bash_profile file but need help for setting path for all current users.
rahul revo
On 5 Feb 2003 06:28:13 -0000 "rahul revo" rahulrevo@rediffmail.com wrote:
|hi | |how can i set the path variable for all the users using the bash |shell to add a directory say /opt/java/bin. |i know how to set the path for individual users through |.bash_profile file but need help for setting path for all current |users.
Set it in /etc/bashrc and export it.
| |rahul revo | | |-- |_______________________________________________ | |http://mm.ilug-bom.org.in/mailman/listinfo/linuxers | |
On 5 Feb 2003, rahul revo wrote:
how can i set the path variable for all the users using the bash
/etc/profile
haven't you ever read the source files in /etc ? not even curious to know what they contain?
Rahul, On my RH 7.3 system I am able to do it by making appropriate changes in the /etc/profile file. It 'may' be the same for other distros as well.
regards Parag
rahul revo wrote:
hi
how can i set the path variable for all the users using the bash shell to add a directory say /opt/java/bin. i know how to set the path for individual users through .bash_profile file but need help for setting path for all current users.
rahul revo
rahul revo wrote:
hi
how can i set the path variable for all the users using the bash shell to add a directory say /opt/java/bin. i know how to set the path for individual users through .bash_profile file but need help for setting path for all current users.
rahul revo
the way you set it in .bash_profile set it in /etc/bashrc
Regards, Mohan Cheema
On Wed, 5 Feb 2003, Mohan Cheema wrote:
the way you set it in .bash_profile set it in /etc/bashrc
have you read the contents of /etc/bashrc? if you read the comments at the top, you'd see that bashrc is only for aliases and functions. see what it says about Environment stuff.
/etc/profile
Mitul Limbani CTO, Enterux Solutions The Enterprise Linux Company
Quoting rahul revo rahulrevo@rediffmail.com:
hi
how can i set the path variable for all the users using the bash shell to add a directory say /opt/java/bin. i know how to set the path for individual users through .bash_profile file but need help for setting path for all current users.
rahul revo
-- _______________________________________________
Best Regards, Mitul Limbani CTO, Enterux Solutions The Enterprise Linux Company (http://www.enterux.com/)
------------------------------------------------- This mail sent through IMP: http://horde.org/imp/