Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
REPORT=/tmp/ssh_acl.txt
for user in $(knife data bag show users)
do
knife data bag show users $user | grep -v ssh_keys | grep -v ssh-rsa | grep -v htpasswd | grep -v shell >> $REPORT
echo "---------------------" >> $REPORT
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.