|
How do I get my environment to come along when I "su"?
A reader writes:
Here is the problem - when I su to become root I don't have any aliases or any stuff in my path. I also am not sure were the .bash_profile for root goes and if it is even read when su'ing - please help thanks. In terms of where root has its "rc" files, the best way to ascertain that is to identify the HOME directory for the root account by using grep: grep root /etc/passwdQuite often, root has its home in the directory / or, sometimes, /home/root. You could then easily copy all of your own "rc" files into that directory to ensure that your root environment is functionally identical.
Categorized:
Unix and Linux Help
(Article 3688,
Written by Dave Taylor)
Tagged: Previous: And a nice review of "Wicked Cool Shell Scripts" Next: How do I tweak my PATH? Subscribe!
How do I get my enviroment to change back to my previous enviroment. Posted by: TIMOTHY at August 15, 2005 4:57 PMI have something to say, now that you mention it, but ...
I do have a comment, now that you mention it!
|
Recommended
Recent Entries
Search
I Need Help!
Apple iPad Help
Articles and Reviews Auctions and Online Shopping Blogs and RSS Feeds Building Web Site Traffic Business and Management CGI Scripts and Web Site Programming Computer and Internet Basics d) None of the Above Facebook Help Google Plus Help HTML and CSS Industry News and Trade Shows iPhone and Cell Phone Help iPod, Sony PSP and MP3 Player Help Mac OS X Help Pay Per Click (PPC) Advertising Search Engine Optimization (SEO) Shell Script Programming Tech Support Video Help The Writing Business Twitter, LinkedIn and Social Network Help Unix and Linux Help Video Game Tips and Help Windows PC Help WordPress Help |