[102192] in RedHat Linux List
RE: reboot from user's account
daemon@ATHENA.MIT.EDU (Fred W. Noltie Jr.)
Tue Dec 1 20:33:13 1998
In-Reply-To: <Pine.A32.3.91.981201173853.13492C-100000@compute.it.siu.edu>
Date: Tue, 01 Dec 1998 19:33:17 -0600 (CST)
From: "Fred W. Noltie Jr." <criterion-consulting@usinternet.com>
To: redhat-list@redhat.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 01-Dec-98 wang zaigui spluttered:
# how do I reboot linux as a user, not as root?
# I try "su root" and from there issue "reboot", the
# computer says 'command not available'
#
# Guess this is a naive question. But would appreciate any
# teaching.
reboot is not in your path as a regular user. When you do su, your path
remains in effect. You can get root's environment by doing "su -"
(minus the quotes), or with plain ol' "su", just do /sbin/reboot
instead of just reboot.
Fred
- ----------------------------------------------
"The road to tyranny, we must never forget, is
the destruction of the truth." -- Bill Clinton,
University of Connecticut speech, October 1995
- ----------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv
iQA/AwUBNmSY3OG4uDOIy4C4EQIM1wCfUFJbbrz5Ql4namWD2vwgaWFnrLkAnRhM
tWkYhXa5tbynGt3tRTFVy32C
=mD6q
-----END PGP SIGNATURE-----
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.