Håvard - Nordhost
New member
Hello,
We got some clients that parked their domain on our servers. Those clients does not need access to public_html since they are not allowed to host any webpage.
To keep control of those we need a custom script to run by cron once every hour to set the correct ownership.
The command we use today (manually) is:
chown -R root.username /home/username/domains/domainname.tld/public_html
This should be done for all users that got the hosting package "00-Domeneparkering" with 105 MB disk space.
And also we need a cron to revert the changes in case a user upgrade their package by the command:
chown -R username.username /home/username/domains/domainname.tld/public_html
I do not know if the best way is to keep a list stored with parked domains and than compare to current package, or if the best way is to run this for all users on the server every hour.
Note that our servers maximum are hosting 80 users, so the job should be able to complete within a few minutes.
Please contact me by PM if you think you can manage to help us.
Thanks,
Haavard
We got some clients that parked their domain on our servers. Those clients does not need access to public_html since they are not allowed to host any webpage.
To keep control of those we need a custom script to run by cron once every hour to set the correct ownership.
The command we use today (manually) is:
chown -R root.username /home/username/domains/domainname.tld/public_html
This should be done for all users that got the hosting package "00-Domeneparkering" with 105 MB disk space.
And also we need a cron to revert the changes in case a user upgrade their package by the command:
chown -R username.username /home/username/domains/domainname.tld/public_html
I do not know if the best way is to keep a list stored with parked domains and than compare to current package, or if the best way is to run this for all users on the server every hour.
Note that our servers maximum are hosting 80 users, so the job should be able to complete within a few minutes.
Please contact me by PM if you think you can manage to help us.
Thanks,
Haavard