Hi there, I am looking for a shell script to be run in linux as root.
this script will include a comma seperated "db" of usernames such as domaina, domainb, domainc etc.
then it will perform a recursive copy from one place to /home/$username/public_html/
cp -rfp --reply=yes /home/infoln/www/source/* /home/$username/public_html/
then chown that usernames public_html/
chown -Rf $username:$username /home/$username/public_html/
then repeat until all the names in the db are done.
actual code will be:
cp -rfp --reply=yes /extra/source/* /home/$username/public_html/
chown -Rf $username:$username/home/$username/public_html/
rinse wash and repeat! :)
The code is right there for you - I just need the forenext loop to be added with the db, should be fairly simple to do.