• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

plesk 11 and vhostmng missing

Mickael Salfati

Regular Pleskian
Hi IgorG and parallels Team,

on plesk 11, is there an another alternative to set again properly all permissions on a vhost and his subdomains ?

Mickaël.
 
Try to use following script:
Code:
# mysql -Ns -uadmin -p`cat /etc/psa/.psa.shadow` -Dpsa -Nse "select  s.login,h.www_root from domains d, hosting h, sys_users s where s.id=h.sys_user_id and h.dom_id=d.id"| grep [B]domain.com[/B] | while read usr path; do chown -R $usr:psacln $path ; chown -R root:root $path/plesk-stat; chown $usr:psaserv $path; done

where domain.com is name of vhost. Let me know if it helps.
 
Re

IgorG,

Thank you. It's my actual solution ;) But we have to catch others directories anon_ftp, cgi-bin, conf, error_docs etc.
So I'm wondering if a plesk tool (like vhostmng) it was not more secure for end customers.

Mickael.
 
Back
Top