Hi sun-managers,
My original question was why is init s and init 1 not taking the machine to
the single user mode. If I enter init s or init 1, others can still log in
through rlogin or telnet.
Sun's Response
Only the operations in /etc/inittab are affected with init . Therefore
nothing really happens unless it is in /etc/inittab.
(This great answer came from someone reading out of the book. Every since
Sun "subed out" their Help Line, the answers have been rather "wanting".)
Another sun-manager said to look at using shutdown -i S which works.
Having done this, I looked at the shutdown script and noticed that it touched
a file called /etc/nologin. If this file exists, noone can log onto the
system. This /etc/nologin file is really the crux of keeping people from
logging into the system. If it exists, whenever someone tries to log on the
system, the contents of /etc/nologin will be sent to their terminal and they
will immediately be disconnected. I could find NO documentation about
/etc/nologin.
By the way, using init s and init 1 do nothing to keep users off the system.
You would need to rewrite init to make this happen. As the system is
delivered, init s and init 1 do not really work.
Also, booting with the "-sw" argument will also bring you into single user
mode and keep others off.
That's about all, Folks.
coffindv@wangfed.com
McLean, Virginia
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:01 CDT