access denied FTPS error 553 can't open the file

Discussion in 'Installation/Configuration' started by N90X_Encryptor, Nov 30, 2023.

  1. N90X_Encryptor

    N90X_Encryptor New Member

    I can connect via FTP/S but when I try to edit a file I get this error.
    FTP account was created in ISPConf and I can connect.
    Running on Debian 12, ISPConf 3
    Same thing happens for all FTP users.
    I can add new files, just can not edit or replace existing files.
    How can I investigate and fix this issue.
     

    Attached Files:

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    So you can upload files by FTP but you can not edit the files anymore after you uploaded them? In which folder did you upload them and pos the ls -la command output from that folder to show which permissions and ownership the uploaded files have.
     
  3. N90X_Encryptor

    N90X_Encryptor New Member

    Looks like the original files were uploaded/ copied directly from the server (root) to the:
    root@d2:/var/www/clients/client1/mailanyletter.com/web# folder
    in fact if logged into the Debian machine, I need to SUDO to access this folder.
    How can I change ownership to a FTP user?
    these folders were all created by ISPconf when I created the "website"
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    When you create a FTP user for a website in ISPConfig, then this user has always the correct permissions for the site. The problem is that you copied the files as root user and missed changing the ownership of the files to the website user and group. File ownership on Linux is changed with the chown command.

    Run this command as root and post the result:

    ls -la /var/www/clients/client1/mailanyletter.com/web

    That's great as you know now, the FTP user is correct, and also the website folder owners and permissions are correct. So the only thing remains that you copied files as root and missed to set a correct owner (user and group) after copying them as root user.
     
    Last edited: Nov 30, 2023
  5. N90X_Encryptor

    N90X_Encryptor New Member

    I just backed up all the files to my PC, then deleted the files in web.
    Then FTPed the files back on the web-folder and I have ownership now .

    Thanks!!!!
     

Share This Page