Re: Service network restart

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

 



On Monday 20 December 2004 22:33, P Jones wrote:
> On Tue, 2004-12-21 at 00:22 +0100, Alexander Dalloz wrote:
> > Am Mo, den 20.12.2004 schrieb Maciek R. um 22:26:
> > > What must I do to get this to work and how do you add and remove s.th.
> > > to the path anyway? (which commands)
> > >
> > > Maciek R. <m.mail@xxxxx>
> >
> > Use "su -", not "su" to get a root _login_ shell.
> >
> > Alexander
>
> Alexander;
>
> Would you explain the difference between "su -" and "su"? I have always
> used "su" to get root, and it works, but I've seen documentation that
> says, and as you suggest, to use "su -". I'm curious why.

Simply put, when su is invoked with a '-' (dash character) the users 
environment is run before returning the shell prompt or running the command 
provided as an argument.  Root  user is implied unless a user name is 
specified as an argument. 

Attachment: pgpB2H6fze4Mm.pgp
Description: PGP signature


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

  Powered by Linux