disable nologin for a user code example Example: linux change user shell /bin/false usermod -s /sbin/nologin myuser