From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <92ca94df2a8c59bb2d98278d459197c1.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199705050450.XAA13865@sh1.ro.com> Date: Mon, 05 May 1997 09:13:33 +0300 From: Kari Davidsson Subject: Re: rebooting question... 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