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