Apache owner changed

Discussion in 'ISPConfig 3 Priority Support' started by 3arh, Jan 27, 2017.

  1. 3arh

    3arh New Member


    File owner on one site was changed to something like 1008 clientXX . All files on a site were affected, but other sites are ok. I have ispconfig v
    How is it possible , that the owner of files on a website in ispconfig webserver was changed, from webXXX to 1008 , group stayed the same.
    It looks like an attack, but I can't find any funny log entries.

    Thank you and best regards.
  2. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    Seems, that there is the user for the id 1008 missing in /etc/passwd or you have multiple entries for this id
  3. 3arh

    3arh New Member

    more /etc/passwd |grep 1008
    multiple entries ...
    it happend when the site was hacked, I want to prohibit future actions like this... so what can I do that a web user can not change permissions on a site files

    Thank you .

  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The 1008 here is the group 1008 and not a user with that ID.

    A web server process can not set the user ID to an ID that differs from the web user. So either the user with ID 1008 is missing now and existed before or the file was placed there by the root user. Are you really sure that this fle was placed by a hack on this system? Maybe the file was in a tar archive that you unpacked as root on the server and you might noticed it just now, as this would explain a non existing UID.

Share This Page