local alias not respected

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

 



On Friday 25 December 2009 08:25:20 Anne Wilson wrote:
> On Friday 25 December 2009 13:05:49 Patrick Boutilier wrote:
> > On 12/25/2009 07:35 AM, Anne Wilson wrote:
> > <snip>
> >
> > >> 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.

Sorry if I wasn't being very clear (I was in a hurry) :). 

As Patrick explained, and far as I know, it has always been the case that 
"su -" will read root's shell environment and overwrite any user shell 
environment including alias and env. variables.

Is there any possibility that you had that alias in root's .bashrc before the 
upgrade and simply forgot about that ? Or, it could be that command for the 
root profile was "/bin/su" before ? 

In any case, it seems that you got it to work.
--
AC



[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