Want more timely Centmin Mod News Updates?
Become a Member

Creating FTP user

Discussion in 'Other Web Apps usage' started by saiman kumar, Aug 17, 2018.

Tags:
  1. saiman kumar

    saiman kumar New Member

    8
    2
    3
    Jun 23, 2018
    Ratings:
    +3
    Local Time:
    4:07 PM
    Hello,
    how to create a FTP user to provide acess to only some locatons like /usr/local/nginx

    PS i'm not using WordPress
     
  2. eva2000

    eva2000 Administrator Staff Member

    36,054
    7,910
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,192
    Local Time:
    8:37 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    What is the intended purpose for FTP user account ? can't you access it via SFTP and root user ?
     
  3. saiman kumar

    saiman kumar New Member

    8
    2
    3
    Jun 23, 2018
    Ratings:
    +3
    Local Time:
    4:07 PM
    i want to give access to some files to my developer don't want to provide the root logins
     
  4. eva2000

    eva2000 Administrator Staff Member

    36,054
    7,910
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,192
    Local Time:
    8:37 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    /usr/local/nginx is nginx config files and not site files so dev wants access to nginx config files ?

    It's not that easy for Centmin Mod as there is no user isolation chroot/jailed so normal FTP system users are not locked to specific directories.

    Or does dev want access to site files in web root /home/nginx/domains/yourdomain.com/public ? If they want access best is to give them pure-ftp virtual FTP user or even better setup a test staging separate VPS server with a copy of your site and different pure-ftpd user and give access to that test staging copy.
     
  5. saiman kumar

    saiman kumar New Member

    8
    2
    3
    Jun 23, 2018
    Ratings:
    +3
    Local Time:
    4:07 PM
    sorry that was example location i want to give access to /usr/local/nginx/html
     
  6. eva2000

    eva2000 Administrator Staff Member

    36,054
    7,910
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,192
    Local Time:
    8:37 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    There isn't much there in that location other than default nginx page when accessed via IP address and the statistics pages for the server. As such you can probably setup a separate test VPS server with Centmin Mod, and just give dev access via root on separate test server. Once they done what they need to add to /usr/local/nginx/html, you can move it over to your live server yourself.
     
  7. saiman kumar

    saiman kumar New Member

    8
    2
    3
    Jun 23, 2018
    Ratings:
    +3
    Local Time:
    4:07 PM
    i have my website files at /usr/local/nginx/html developer want to edit live becuase there an issue in site and he is debugging
     
  8. eva2000

    eva2000 Administrator Staff Member

    36,054
    7,910
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,192
    Local Time:
    8:37 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    I see. Unfortunately, /usr/local/nginx/html isn't intended for web sites so only way is give them root access. Though it shouldn't be hard to replicate your site and it's issues if you setup a separate VPS and uploaded the same files from /usr/local/nginx/html to test VPS and same nginx vhost for virtual.conf to test VPS and that should give same issues to debug for on test VPS.
     
  9. eva2000

    eva2000 Administrator Staff Member

    36,054
    7,910
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,192
    Local Time:
    8:37 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Oh other way is by moving site from /usr/local/nginx/html to it's own nginx vhost site at /home/nginx/domains/yourdomain.com/public and giving them that site's pure-ftpd virtual FTP user account
     
..