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