Welcome to Centmin Mod Community
Register Now

Nginx What is my password of usename nginx

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

Tags:
  1. luong ha

    luong ha New Member

    6
    0
    1
    Apr 1, 2015
    Ratings:
    +0
    Local Time:
    1:14 AM
    1.7.11
    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

    31,027
    6,928
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,434
    Local Time:
    4:14 AM
    Nginx 1.13.x
    MariaDB 5.5
    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.

    Code:
    #!/bin/bash
    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.