local alias not respected

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Anne,

On Friday 25 December 2009, 10:25, Anne Wilson wrote:
> > >> If you get a user console, then do "su" to get the root console, then
> > >> it should work. If you do "su -", I don't think it'd work as "su -"
> > >> change the environment to use root's.
> > >
> > > You've lost me.  Surely to do updates I *do* want to be root, in root's
> > > environment?
> >
> > environment as in environment variables. Check the differences from the
> > output of the set command for instance when switching to root using
> >
> > su
> >
> > and
> >
> > su -
> 
> OK,I understand what you are saying, but it still doesn't explain why it
> worked in F11, but not in F12.  I'm trying to understand what has changed.

I think the explanation here is that when you switch to su with the command 
su - 
the env. vars. from /root/.bashrc are read, not the ones from your 
/home/<anne>/.bashrc 
So the solution is that you, as root, edit /root/.bashrc and place the alias 
there.
Me, for example, I like yum messages in English, not in Spanish (my sys. 
default locale), so I edited /root/.bashrc and added
export LANG=en_US.UTF-8
and every time Konsole loads the profile, the locale is changed automatically.

Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina



[Index of Archives]     [KDE Users]     [Fedora General Discussion]     [Older Fedora Users Mail]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Maintainers]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Triage]     [Coolkey]     [Yum Users]     [Yosemite Forum]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

  Powered by Linux