Disabling all non-root users

To disable all user logins (except for root) without taking
down the system into maintenance mode
is to 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. 

But make sure you remove the file after you had done with your job.

God Bless.