[Gllug] re: shutting-down/rebooting by logging in as a specific user

John Hearns john.hearns at clustervision.com
Fri Apr 2 10:21:39 UTC 2004


On Fri, 2004-04-02 at 10:31, Andrew Halliwell wrote:

> perhaps adding "killall -9 bash" (or whatever each user uses as his shell)
> or a few lines to kill all shells you have on your system (if you allow
> users to chsh)

I know its what's being asked here.
but a tip to newbie sysadmins.
If you want to keep those pesky users off your system,
for example if you have a BIG PROBLEM you need to solve, or you
are scheduling a shutdown, look at the man pages for nologin.
If the file /etc/nologin exists the system won't allow fresh non-root
logins.

-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list