Path: utzoo!attcan!uunet!ncc!alberta!oha!tony From: tony@oha.UUCP (Tony Olekshy) Newsgroups: comp.unix.wizards Subject: Re: multi/single-user mode flag? Summary: Try setting environment variable at single user startup. Message-ID: <243@oha.UUCP> Date: 15 May 88 01:48:20 GMT References: <3595@psuvax1.psu.edu> Organization: Olekshy Hoover & Associates Ltd., Edmonton,Alberta,Canada Lines: 13 In <3595@psuvax1.psu.edu> okunewck@gondor.cs.psu.edu (Phil OKunewick) writes: > > Therefore, I want something that will tell my operator "Do not do it this > way you fool" if he tries to dump in multi-user mode. We are running Xenix V here, and Xenix V uses /.profile before $HOME/.profile only when starting the top-level single-user-mode sh. I have placed: SU_MODE=1; export SU_MODE in /.profile only, so I can always determine if I am in single user mode just by examining "$SU_MODE". If your system lets you determine if you are in single user mode during the shell startup script then you can use this too.