To disable all user logins (except for root) without taking down the system into maintenance mode create a file /etc/nologin. The content of this file will be displayed when a user tries to log in. Useful when doing service on the system which might affect users.