[Solved] ISPConfig 3.1.2 Permission denied for FTP user

Discussion in 'Server Operation' started by anark10n, Dec 28, 2018.

  1. anark10n

    anark10n Member

    Hey there
    So, the problem is that I can't make changes to the web folder of my website's root folder, even after changing the owner of the folder to the user and group of the client (both user and ftp user created in ispconfig).
    I get the following error: 550 Could not delete index.html: Permission denied
    Any ideas on what to troubleshoot or how to resolve this would be much appreciated.
     
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Resync may help I think.
     
  3. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    The website root folder is protected with chattr. The web/ subfolder should be writable, though.
     
  4. anark10n

    anark10n Member

    Oh, sorry for the confusion, i thought the website root folder was web<n>/ folder. Yeah, i meant the web<n>/web/ folder. Also happens for every other client i have registered when it didn't behave this way before.
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    which user owns the web<n>/web/index.html file that you are trying to delete? Do the webN user and clientN group of that file match the user and group of the website (see options tab of the site) and the web user and group of the FTP user (see advanced or options tab of the FTP user).
     
  6. anark10n

    anark10n Member

    The user and group for the webN folder is web22:client20, had to change it to this because ispconfig created them as root:root. ISPConfig panel is down due to my server refusing http/https connections, for some reason, will report back when I resolve that.
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    The webn folder must be owned by root, so please change that back to user and group 'root'. I asked for the owner of the web folder.
     
  8. anark10n

    anark10n Member

    Oh right, my bad. The owner of webN/web and all it's contents are owned by web22:client20.
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

  10. anark10n

    anark10n Member

    User and group match the fields found in the Options tab of site and FTP user. I'm able to upload, delete, and rename files if I run chattr -i -R on the directory, but not when I change the attribute back with chattr +i -R.
     
  11. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    So it is working as planned?
    ISPConfig does not set i on files in web/*.
     
  12. anark10n

    anark10n Member

    Ii wasn't aware of that, makes sense now that i think about it, thanks for the help.
     

Share This Page