ftp and shell user

Discussion in 'Installation/Configuration' started by jboud, Sep 16, 2021.

  1. jboud

    jboud Member

    Hello, I'm trying to make a project and I need an ftp user to upload files on a specific folder and an rsync automation (shell user) to sync that folder from another destination. My problem is that an ftp user uploads/creates on a specific directory, but a shell user cannot see the uploads/created files or folders in that place. Something to do with rights, with root user I can see them but it would be extremely unsafe to use root as rsync from a 3rd party destination. I've thought of a script to copy the files on shell user's home but I wonder if there's another way of doing it.

    tldr: can ftp and shell user share the same folder?
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    If you use ISPConfig that is one of its many features.
  3. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Like @ahrasis wrote. If not using ISPConfig, I am sure it is possible to set up a directory so both ftp and ssh can access it. At least if FTP-user is a real user in the OS and not just a virtual user.
  4. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Ftp users are always restricted to the web home dir, and shell users can also access those files. If you set the shell user to use jailkit, it will by default have the exact same file/directory view as the ftp user.
  5. jboud

    jboud Member

    Thanks for the answers, my mistake was trying to use folders behind /web, and I'm not sure it helped but also activated jailkit. It works. Thanks for the tips.

Share This Page