Created
October 27, 2021 17:07
-
-
Save bsnux/9e69cb9952c51638dacc15f0949a454a to your computer and use it in GitHub Desktop.
How to modify shell when auth is done by LDAP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Set zsh as default shell when auth is done by LDAP | |
# | |
set -eou pipefail | |
getent passwd afernandez | perl -pne 's/bash/zsh/' | sudo tee -a /etc/passwd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment