Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* rebooting question...
@ 1997-05-04 20:24 Britt Bolen
  0 siblings, 0 replies; 4+ messages in thread
From: Britt Bolen @ 1997-05-04 20:24 UTC (permalink / raw)


I know this is more of a general unix question... but how would i reboot
from telnet when my UDB's keyboard/mouse freeze on me?  logging in a then
doing an su root doesn't let me access shutdown

Britt

--------------------
Britt Bolen <bolen@fas.harvard.edu>
http://bolen-2.student.harvard.edu/~bolen/

"We cross our bridges when we come to them and burn them behind us, with
nothing to show for our progress except a memory of the smell of smoke,
and a presumption that once our eyes watered."
-Guildenstern

--
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: rebooting question...
       [not found] <Pine.LNX.3.95.970504162302.25072A-100000@bolen-2.student.harvard.edu>
@ 1997-05-04 21:24 ` Andreas Ulrich Trottmann
  0 siblings, 0 replies; 4+ messages in thread
From: Andreas Ulrich Trottmann @ 1997-05-04 21:24 UTC (permalink / raw)


On Sun, 4 May 1997, Britt Bolen wrote:

> I know this is more of a general unix question... but how would i reboot
> from telnet when my UDB's keyboard/mouse freeze on me?  logging in a then
> doing an su root doesn't let me access shutdown

do a "su - root" (and then a simple shutdown) or just enter the full path 
(presumably /sbin/shutdown).

The reason is that a simple "su" doesn't mimic a full login so it's 
possible that some environment variables (most notably $PATH) are not set 
as they are when you login or do a "su -".

cu,
Andi

--
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: rebooting question...
@ 1997-05-05  6:13 Kari Davidsson
  0 siblings, 0 replies; 4+ messages in thread
From: Kari Davidsson @ 1997-05-05  6:13 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1431 bytes --]

Britt Bolen wrote:
> 
> I know this is more of a general unix question... but how would i reboot
> from telnet when my UDB's keyboard/mouse freeze on me?  logging in a then
> doing an su root doesn't let me access shutdown

This is because how the $PATH variable is preserved when doing su.
As I understand it when you issue su command you just change the
uid (and gid?) but all environmental variables stays unchanged, i.e.
you are not logging in as root, just changing the uid. This means that
/etc/profile and ~/.bash_profile are not sourced when you change
identities with su.

Either add /sbin/ to the path of your alternate identity or just give
the absolute path /sbin/shutdown -r now

K.D.

> 
> Britt

-- 
  *********************************************************************
  * Kári Davíðsson                    *                               *
  * Opiskelijankatu 4 F 330           *                               *
  * 33720 Tampere                     *     Your advertisement here.  *
  * Finland                           *     Low prices.               *
  * Tel: + 358-(0)50-5225153          *                               *
  * d154402@cs.tut.fi                 *	                              *
  *********************************************************************

--
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: rebooting question...
       [not found] <336D7A8D.4E2C@cs.tut.fi>
@ 1997-05-05 14:47 ` Michal Jaegermann
  0 siblings, 0 replies; 4+ messages in thread
From: Michal Jaegermann @ 1997-05-05 14:47 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1997-05-05 14:47 UTC | newest]

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

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