Current time: 12-23-2024, 09:57 AM Hello There, Guest! (LoginRegister)


Post Reply 
Domain Expire
Author Message
cuss Offline
Junior Member
*

Posts: 21
Joined: Aug 2010
Reputation: 0
Post: #2
RE: Domain Expire
(04-30-2011 04:12 PM)discountcode Wrote:  thx for your suggestion. Smile

I have much more, Tongue

Like:

- Let the user create a password or use the same on the system to connect via ssh.
- Make a script that fix the owner of each files from virtual space (this can prevent some hack attemps)
Example:
PHP Code:
foreach ($users as $user){

      
// Prevent hack attemps
      
if(preg_match('/^vu[0-9]{4}$/',$user['guid'])===false)
            continue;

      
// Change owner and groups - Recursive
      
exec('chown -R '.$user['guid'].':'.$user['guid'].' /var/www/virtual/'.$user['domain'].'/htdocs/');
      
      
// And maybe other folders too...


If you want more suggestions/code, i'm here to try to help Tongue
04-30-2011 08:08 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Domain Expire - cuss - 01-20-2011, 08:50 PM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)