Vincent Lefevre schrob: > However, though my /etc/environment is an empty file, some other > variables are preserved. This includes LC_* variables, LS_COLORS, > COLORTERM and XAUTHORITY. > Example: > > # export LS_COLORS=blah > # sudo -i env | grep LS_ > LS_COLORS=blah
Works for me:
| # LS_COLORS=blah sudo -i env | grep
| LS_LS_COLORS=rs=0:di=01;34:ln=01;36:mh.........
| LS_OPTIONS=--color=auto
| # vi ~/.bashrc # remove eval dircolors stanza
| # LS_COLORS=blah sudo -i env | grep LS_
| LS_OPTIONS=--color=auto
| # LS_COLORS=blah sudo -E env | grep LS_
| LS_COLORS=blah
| LS_OPTIONS=--color=auto
> I wondered whether pam could have an influence, but I haven't seen
> LS_COLORS listed in related files.
Might be.
My /etc/sudoers contains "Defaults env_reset" and no mention of
LS_COLORS.
cheers,
Jan
--
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
signature.asc
Description: Digital signature

