Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I would like my plesk skeleton httpdocs to have a drwxr-xr-x permission. Plesk creates users for each domain we create, but the only users that need access to the domain, are the developers who update the application code, and they belong to the group that owns all t / I tried setting it up in /var/www/vhosts/.skel/0 but the permissions from there are always overwritten.

share|improve this question

2 Answers 2

Yes, permissions and ownership are overwritten. You can only put custom files in skeleton. If you want some users accessing all domains on a server, you could include them in "psaserv" group, which is granted access to httpdocs.

share|improve this answer
    
hey Sergey. that's what I did already. my skeleton has drwxrwxr-x 5 root root 4096 Jul 10 09:58 httpdocs but once a new domain is created it reverts to drwxr-xr-x. All the web developers are part of psaserv already. –  Kasia Gogolek Jul 11 '12 at 10:44
up vote 0 down vote accepted

Thanks to Sergeys suggestion in another post I created an event that chmods all the directories on "Physical hosting created" FYI Domain Created doesn't work, as it is being called before the actual files are created on the server.

#!/bin/bash
chmod g+rwx "/var/www/vhosts/${NEW_DOMAIN_NAME}/httpdocs"
chmod g+rwx "/var/www/vhosts/${NEW_DOMAIN_NAME}/httpsdocs"
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.