Next LUG meet: 9 Nov 2003 around 4 pm - VJTI
--------------------------------------------
On Tue, Nov 11, 2003 at 02:09:26PM +0530, Nikhil Joshi wrote:

> I want an option at runlevel 3 ( Console-only login .. no GUI login ) to
> choose halt or reboot the PC. This is useful in case someone accidentally
> boots into Linux instead of some other OS.

Your original idea of putting a login whose job is to shutdown seems
interesting ... but what happens if someone telnets to that machine
with the same login? You'll need to make sure that this particular
login can _only_ work from getty running on a local terminal, no other
service should be allowed.

You don't need to edit .bashrc ... you should be able to invoke
"shutdown" as the login shell from /etc/passwd itself! DISCLAIMER: I
havn't tried this myself, don't know if it can work.

This will be useful for shared PCs that need to be shutdown without
knowing the root password!

Sameer.
-- 
Research Scholar, KReSIT, IIT Bombay
http://www.it.iitb.ac.in/~sameerds/

-- 
http://mm.ilug-bom.org.in/mailman/listinfo/linuxers

Reply via email to