I would like ssh, sudo su and umount /home and run diagnostic on it. Is there a runlevel I can used to close X and other process using /home while keeping network access? Or another way?
First, log out all user manually, then ssh with root.
Use "lsof | grep home" to find remaining process that use /home and kill them all.
You can umount.
Enable root SSH login
For Ubuntu this means you need to give root a password in order to login via
Consider that the root account may be disabled from SSH access by default, verify the setting in
Logoff users and prevent new logins
To kick users off in a multi-user environment one would normally change to the single-user run level 1. However this is pretty much a console or serial port only task as
The not so great alternative is judicious use of
The next problem is prevent users immediate sign back in. You can create the file
This is also provided by the