Learn about Centmin Mod LEMP Stack today
Register Now

Nginx What is my password of usename nginx

Discussion in 'Centmin Mod Insights' started by luong ha, Apr 13, 2015.

  1. luong ha

    luong ha New Member

    Apr 1, 2015
    Local Time:
    11:27 PM
    MariaDB 5.5
    I use Centminmod for wordpress site. When i upload file to /home/nginx/domains/plublic/...
    i alway run "chown -R nginx:nginx /home/nginx/domains/plublic/" via SSH. time-consuming. I want login File Zilla via nginx account, just access file on /home/nginx/domains/plublic/. and don't need run Chown via SSH.
    So where i can find/creat/change nginx password?
    Please help me

  2. eva2000

    eva2000 Administrator Staff Member

    May 24, 2014
    Brisbane, Australia
    Local Time:
    2:27 AM
    Nginx 1.25.x
    MariaDB 10.x
    You using Centmin Mod .07 stable ? For security reasons you shouldn't make nginx user accessible as the only way out of box to give nginx a working password and SFTP access is to give nginx full shell access as well. Of course it's possible but you would need to set that up yourself as any other method would not be supported by me. Of course other members are free to help you if they want.

    You can also setup a cronjob script to do the chown automatically i.e.

    chown -R nginx:nginx /home/nginx/domains
    Note, any system level changes may interfere with future Centmin Mod release updates i.e. .08 beta has pure-ftp virtual ftp user support Centmin Mod .08 beta + pure-ftpd virtual FTP user support | Centmin Mod Community which does exactly what you want, upload files already has nginx:nginx user/group.