From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040625 Description of problem: Aliases sourced via /etc/bashrc not enabled after issuing su to any other user. Version-Release number of selected component (if applicable): bash-3.0-1 How reproducible: Always Steps to Reproduce: 1.start term 2.issue su to another user 3.enter ls Actual Results: formatted list of files and directories in columns Expected Results: as above, but with expected --color=tty option Additional info: All other aliases to the ls command fail to work as they do for the account logged in. Problem persists under KDE, but not in Terminal mode. Fix suggested by Michal Jaegerman to add 'TERM gnome' to /etc/DIR_COLORS seems to work.
You need to tell me exactly which commands to run to see this. What exactly do you add to /etc/bashrc, and what do you type to change user?
from gnome or KDE desktop start term: ls / (you see a columned list of files, directories and links in colors) ll (you see a list in one column of files with permissions, owners, sizes su - <enter root password> ls / (you see a columned list of files, directories and links all in black) ll (you see 'bash: command not found') ------------------------------------ I did not change /etc/bashrc but did edit /etc/DIR_COLORS to add the line: TERM gnome to the list of TERM xxx found there ----------------------------------- To change user I used su - when logged in as myself and su scott when logged in as root
Thanks, fixed in 5.2.1-19.