Skip to content

Instantly share code, notes, and snippets.

@ussy
Created March 29, 2011 09:00
Show Gist options
  • Save ussy/892036 to your computer and use it in GitHub Desktop.
Save ussy/892036 to your computer and use it in GitHub Desktop.
#!/bin/sh
for user in `ls /home`
do
echo $user
chown -R $user:$user /home/$user
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment