multi/single-user mode flag?

Tony Olekshy tony at oha.UUCP
Sun May 15 11:48:20 AEST 1988


In <3595 at psuvax1.psu.edu> okunewck at 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.



More information about the Comp.unix.wizards mailing list