nobaloney
NoBaloney Internet Svcs - In Memoriam †
I found this script: user_restore_post.sh
described here .
But little information. I need it to change ownership of certain squirrelmail files to webapps;webapps to run under mod-ruid2. Of course it needs to run as root.
Does anyone know if this will work?
Or do I need to test by restoring a user built on a machine not using mod_ruid2?
The main issue I see is whether or not the user_restore_post.sh script runs as root. If this won't work, then I'll have to run the commands in an hourly cron, or remember to do it manually after every restore.
Thanks.
Jeff
described here .
But little information. I need it to change ownership of certain squirrelmail files to webapps;webapps to run under mod-ruid2. Of course it needs to run as root.
Does anyone know if this will work?
Code:
#!/bin/sh
# Script written by JL 03-jul-2011
# run after restore is finished to change ownership of certain squirrelmail
# files to webapps:webapps
cd /var/www/html/squirrelmail
chown -R webapps:webapps *
Or do I need to test by restoring a user built on a machine not using mod_ruid2?
The main issue I see is whether or not the user_restore_post.sh script runs as root. If this won't work, then I'll have to run the commands in an hourly cron, or remember to do it manually after every restore.
Thanks.
Jeff