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. On Thu, 21 Apr 2005, Raymond Norton wrote: > We managed to rescue all the home folders, and user info files from our > server that crashed. We have copied them over to a new Fedora core 3 > install. Is there a script I can run that can give the users in > /etc/passwd full control of their original home folder. As of now, only > root has permission to access them. > > > Raymond > > _______________________________________________ > TCLUG Mailing List - Minneapolis/St. Paul, Minnesota > tclug-list at mn-linux.org > http://mailman.mn-linux.org/mailman/listinfo/tclug-list >