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