Skip to content

Instantly share code, notes, and snippets.

@hbt
Last active September 29, 2021 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hbt/df55c485fd9fb37447e7a0e0741623e2 to your computer and use it in GitHub Desktop.
Save hbt/df55c485fd9fb37447e7a0e0741623e2 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -euo pipefail bash
for entry in "/home"/*pixeldev.com
do
cd $entry
username=$(stat -c "%U" .)
chown $username:psacln -R .ssh
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment