FTP user with rights to full client

Discussion in 'General' started by Fafa24, Oct 25, 2018.

  1. Fafa24

    Fafa24 New Member

    Hello,

    I need to create an FTP user which has rights to all web for a client.

    When I create the FTP user in ISPconfig under Options Tab I can set the directory. ISPConfig does it set automatically for the web like this
    /var/www/clients/client15/web30
    However I would like to give the FTP user full access to all client webs like
    /var/www/clients/client15
    If I change it, ISPconfig complains.

    Is there a way from the backend to do this?

    Thanks
    Fafa24
     
  2. ahrasis

    ahrasis Well-Known Member

    Create an ssh user instead?
     
  3. Fafa24

    Fafa24 New Member

    It is an option, but I need to login with an FTP client. I would prefer port 21, since port 22 is closed.
     
  4. ahrasis

    ahrasis Well-Known Member

    You know that you don't have to use port 22 for ssh and you can always port forward if you are behind a router, right?
     
  5. Fafa24

    Fafa24 New Member

    Yes I know. actually on this server port is set to a different on. But I like to give the client normal FTP access with prt 21.
    So the question remains, is there a way to change access rights for an FTP user created with ISPconfig?
    Installed is pure-ftpd.

    Thanks,
    Edy
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    This option cannot exist as each website has it's own Linux user for security reasons, so there cannot be one user to access multiple websites. If you want to have multiple sites under the same user, create them as vhost alias domains in ISPConfig instead of creating a new website.
     
  7. Fafa24

    Fafa24 New Member

    Thanks - Would it be possible to create a pure-ftpd user not in ISPconfig and assign right to the client folder? The server is Ubuntu 18.04
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    An FTP user cannot be multiple Linux users at the same time, this is not ispconfig specific and it does not matter if you create an FTP user in ISPConfig or manually for that. An FTP user is always mapped to one Linux user and when each website has its own user, then an FTP user cannot access more than one website. I posted above already what you have to do if you want to run multiple vhosts under the same user.
     
  9. Fafa24

    Fafa24 New Member

    I understand - even thought that I have already set up all the website for the client. Could I in additional create aliadomain? Would that work?
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    A domain can exist only once in the apache or nginx config, so you can not create it again as vhost aliasdomain unless you delete the website which currently uses that domain first. and please not, I'm talking about aliasdomain (vhost) here and not just aliasdomain, that's two different things. Alias domain (vhost)'s are available in the sites module menu after you enabled them under system > interface config.
     
    ahrasis likes this.
  11. Jesse Norell

    Jesse Norell Well-Known Member

    there was a discussion on the forums here about setting up a single ftp account with access to multiple websites by remapping user id's via bind mounts - it should work, though I've not tried that specifically offhand (I've done similar remapping for other purposes), and of course ispconfig doesn't set that up for you, it'd have to be manual (or scripted or via a custom server plugin)
     
    till likes this.

Share This Page