<quote who="Simon Bryan">
> I have all my users home directories under /home/popusers/
> it turns out I may need to add a directory and set permissions on it in each
> users directory (there are over 900 of them).
> Is there a simple way to do this? Say the directory needs to be called
> 'attach' in an existing 'dot' directory.
cd /home
for i in *; do
mkdir -p $i/dot/attach;
chown -R $i:$i $i/dot/attach;
chmod -R 0755 $i/dot/attach;
done
:-)
- Jeff
--
"Spend your 'different points' wisely." - Havoc Pennington
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug