Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
Subject: Re: rebooting question...
Date: Mon, 5 May 1997 08:47:27 -0600 (MDT)	[thread overview]
Message-ID: <199705051447.IAA22124@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <336D7A8D.4E2C@cs.tut.fi>

Kari Davidsson wrote:
> 
> Britt Bolen wrote:
> > 
> > logging in a then
> > doing an su root doesn't let me access shutdown

This is, of course, not the case.  If you are root you have an access
to everything.

> This is because how the $PATH variable is preserved when doing su.
....
> 
> Either add /sbin/ to the path

Don't!  There are reasons why root and regular accounts do not have
the same path.  Moreover, if you care a tiny bit about security, path
for root should be tightly controlled, without any environment variables
in the middle to expand, and without stuff like '.' anywhere.

Do 'su -' instead and you will get all root environment.  You can
also always execute root startup files "by hand" - if you forgot this
'-'.  BTW 'su - <name>' applies to other accounts as well.

> or just give
> the absolute path /sbin/shutdown -r now

This is always a simple option. :-)

  Michal

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

       reply	other threads:[~1997-05-05 14:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <336D7A8D.4E2C@cs.tut.fi>
1997-05-05 14:47 ` Michal Jaegermann [this message]
1997-05-05  6:13 rebooting question Kari Davidsson
     [not found] <Pine.LNX.3.95.970504162302.25072A-100000@bolen-2.student.harvard.edu>
1997-05-04 21:24 ` Andreas Ulrich Trottmann
  -- strict thread matches above, loose matches on Subject: below --
1997-05-04 20:24 Britt Bolen
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox