SlackwareThis Forum is for the discussion of Slackware Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I've noticed that when im running Konsole in KDE the colors for different file types / folders dissapear when I su to root. After su'ing, every filetype, folder is displayed using the same color. When I exit out of the su, it returns to the normal color.
Is this normal? What is the logic behind that? I guess more importantly, how do I get the cool colors back as root?
What I've done to get a consistent look when su'ing is to source the /etc/profile file as the very first command in a user's and root's ~/,bashrc file.............So the very first command is:
This way, all the global, or system-wide environment for everyone is placed in the /etc/profle file..............If I want to customize something for a specific user or root, then it goes into that user's ~/.bashrc file.................Also, whenever you su to root or another user, the .bashrc file in that user's home directory gets read, which then rereads /etc/profile because of the 'source' command...........
There's a big difference using "su" as opposed to "su -" --- the latter will receive all of the purdy colors from the root login (as well as other aliases you've set up), whereas the former is merely a little quickie step into rootville and so doesn't.