home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!Germany.EU.net!ira.uka.de!rz.uni-karlsruhe.de!fg70.rz.uni-karlsruhe.de!ig25
- From: ig25@fg70.rz.uni-karlsruhe.de (Thomas Koenig)
- Newsgroups: comp.os.linux
- Subject: Switching off (was: How stable is extended filesystem?)
- Date: 16 Dec 1992 22:44:08 GMT
- Organization: University of Karlsruhe, Germany
- Lines: 24
- Message-ID: <1gobfoINN89h@nz12.rz.uni-karlsruhe.de>
- References: <1gm5rrINNb01@life.ai.mit.edu> <BzC542.8oF@ux1.cso.uiuc.edu> <FRIDLUND.92Dec16154814@stingray.micro.umn.edu>
- Reply-To: ig25@rz.uni-karlsruhe.de
- NNTP-Posting-Host: fg70.rz.uni-karlsruhe.de
-
- In article <FRIDLUND.92Dec16154814@stingray.micro.umn.edu> fridlund@mermaid.micro.umn.edu (Jim Fridlund) writes:
- >Yeah, never
- >reboot without a 'sync'. This is true for all unix box. I wait till
- >I see Linux 'sync' before I do a system reset. NOTE: I don't do
- >system reset unless necessary.
-
- Even switching off after a sync can be dangerous. Suppose some
- background job starts messing the file system after you've just done
- sync...
-
- I'd strongly advise using /etc/shutdown. If you don't usually have a root
- session running, create a user whose sole function is to shut the machine
- down (use a name like off :-). The login shell for that user should
- check wether it is being called from a secure tty, then exec /etc/shutdown now.
-
- Umm, you'd probably have to add this user to /etc/shutdown.allow or
- whatever, or give this user root privileges, I'm not too sure.
-
- Note: He who can pull the plug should have a legal way of bringing the
- system down.
- --
- Thomas Koenig, ig25@rz.uni-karlsruhe.de, ig25@dkauni2.bitnet
- The joy of engineering is to find a straight line on a double logarithmic
- diagram.
-