Problem with ftp ownership

Discussion in 'General' started by Alex1, Jul 14, 2009.

  1. Alex1

    Alex1 New Member

    Hello,

    i find a problem in ftp ownership, i want to set a vhost using mod-php so i make a chown www-data.www-data on web directory.
    I also setup the ftp to use uid 33 and gid 33 (www-data) and it's ok, all work well.
    I will create many sites with this feature and all works.

    Now the problem, if i delete one site, the panel delete the system user www-data with all the problems this operation create.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Thats the correct behaviour as the user has to be deleted when the site gets deleted as every site in a ispconfig system must have a dedicated user. You should not have changed the user for the site to ww-data.
     
  3. Alex1

    Alex1 New Member

    but this this case create ownership problem with mod-php
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    But changing the owner of the site is not a solution as it produces a lot of other problems security wise and with quota. If you want your php scripts to be run by the owner of the site use suphp, fcgi-php with suexec or cgi-php with suexec.
     
  5. Alex1

    Alex1 New Member

    but all this solution require more resurces then mod-php
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, but we will not disable quota an security for websites in ISPConfig. If you dont like the current apache plugin then feel free to write your own plugin.
     
  7. Alex1

    Alex1 New Member

    i will try, but can a plugin edit core action of delete system user?
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Every action is implemented as a plugin.
     

Share This Page