Posted on 12-22-2010 12:02 AM
Yes, what Bob said. I should have made myself clearer. In this fashion, you
can exclude whatever User directories you wish (for example, we have some
support User directories that I would not want to modify so I would exclude
them in that string).
Sean
Posted on 12-30-2010 08:53 AM
Awesome, thanks Sean and Bob!
Here's the script, tested in our LAB:
-------------start FEU/FUT script---------------
#!/bin/sh
#
# Copies payload from /tmp/usercrap to existing and future users.
# 20101230
for i in $(/bin/ls /Users | sed -e '/Shared/d' -e '/Deleted Users/d' -e '/.localized/d' -e '/.DS_Store/d' -e '/.com.apple.timemachine.supported/d' -e '/Adobe/d' -e '/Library/d');
do
/usr/bin/ditto /tmp/usercrap /Users/$i/usercrap
/usr/sbin/chown -R $i:staff /Users/$i/usercrap
done
exit 0
-------------end FEU/FUT script---------------
Don