On Thu, 21 Apr 2005, Dan Rue wrote: > On Thu, Apr 21, 2005 at 10:43:50AM -0500, Adam Maloney wrote: >> for USER in `ls /home`; do chown $USER /home/$USER; done >> >> You might want to do: >> for USER in `ls /home`; do echo "chown $USER /home/$USER"; done >> >> first to make sure the command looks good. >> > > Ok, so this is way better than mine. I just learned cut the other day > and had it stuck in my head :) May not be the best way - I'm doing this while troubleshooting a bad switch at a remote site, so this isn't getting 100% of my brain...