(04-30-2011 04:12 PM)discountcode Wrote: thx for your suggestion.
I have much more,
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