Skip to content

Instantly share code, notes, and snippets.

@seedprod
Created January 8, 2010 15:54
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 seedprod/272122 to your computer and use it in GitHub Desktop.
Save seedprod/272122 to your computer and use it in GitHub Desktop.
Assign Permission Shell
#!/bin/bash
#loop current folder
for x in *;
#exclude a folder
do if [ $x != 'www' ];
#perform chown use: echo "chown -R $x:'domain users' $x/www/*" to test
then chown -R $x:'domain users' $x/www/*;
fi;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment