RE: [opensuse] adding a path for root
James D. Parra wrote:
Hello,
Using bash on a Suse 10.2 system and have added a PATH to /etc/profile for the other users, I can't find where I can add the path for root.
There is no .bash_profile file to edit. How can I also add a new path for root.
Thank you for your help.
James
Hi James, You can use the .bashrc file in roots home directory. If it's not there create it. Example: PATH=$PATH:/path/to/add export PATH ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Thanks Phil. However, I must say that if someone does create and/or edit this file they need to add all paths necessary. I made the mistake of just adding the path I wanted to this file and ssh'd into the system and found all the other commands, such as, find, ls, grep, etc. were no longer available. Luckily, I had the original shell open and added the necessary paths, /usr/bin & /usr/local/bin, for example, to the file and I was back in business. Best, ~James -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (1)
-
James D. Parra