Service network restart

Terry Polzin fox3ec208 at wideopenwest.com
Tue Dec 21 11:26:58 UTC 2004


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 at vp.pl>
> >
> > 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. 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20041221/f05b8080/attachment-0001.sig>


More information about the fedora-list mailing list