Re: Why use "su -" rather than "su"

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

 



You can set the eviroment variables you need for the
root user or some symlinks or you can configure "sudo"
so you can do things like root without "su"ing or "su
-"ing.

sudo it's pretty cool some times, some times you will
need to "su", some to "su -" and some sudo will me
enough ;)

 --- Mike McCarty <mike.mccarty@xxxxxxxxxxxxx>
escribió:

> Paul Howarth wrote:
> 
> > Mike McCarty wrote:
> >
> >>>
> >> I have a general *NIX admin question. Why does
> one want to use
> >> su -
> >> as opposed to just su? I think I understand the
> difference in regards
> >> to "su -" actually changes you to root, as if
> logged in that way, as
> >> opposed to simply granting root privilege. But
> why do that? If I do
> >> that, then I lose my path settings, and can't run
> my normal editor, 
> >> which
> >> is in ~/bin and so on. I just use "su".
> >>
> >> What am I missing?
> >
> >
> > You're missing getting /sbin and /usr/sbin on your
> PATH, which you 
> > probably want for what you're about to do as root.
> If you already have 
> > those directories on your regular user's PATH
> (which is not the 
> > default), "su -" probably doesn't help you much.
> But it does for most 
> > people.
> >
> > Paul.
> >
> Hmm. So I give up my regular editor in return for
> not having to type /sbin/
> 
> Well, I think I'll go along the way I am. I'm a
> pretty good typist.
> 
> I thought there might be a *real* reason, and I had
> missed something. I
> was wondering if there might be some subtle problems
> which would bite
> me later.
> 
> Thanks.
> 
> Mike
> 
> -- 
>
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
> This message made from 100% recycled bits.
> I can explain it for you, but I can't understand it
> for you.
> I speak only for myself, and I am unanimous in that!
> 
> -- 
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe:
> http://www.redhat.com/mailman/listinfo/fedora-list
> 


__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.espanol.yahoo.com/ 


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux