Discover Centmin Mod today
Register Now

DeployHQ and nginx user for site

Discussion in 'System Administration' started by jimbojimbo, Nov 9, 2017.

  1. jimbojimbo

    jimbojimbo New Member

    12
    3
    3
    Nov 9, 2017
    Ratings:
    +3
    Local Time:
    8:57 PM
    Hi everyone.

    Hoping for a pointer in the right direction as a relative amateur but keen to learn.

    I use centminmod with deployhq from bitbucket. Its worked great in simple terms where I deploy using nginx user.


    Ive setup another server though and want to use a user such as 'deployhq' for what im assuming would be better practice instead of opening up 'nginx' user. Added this user to sudoers but obviously doesnt have access to the site directories unless running sudo prefix so deployhq as a tool does not have access to push the files as it does not have write access.

    Is there a way to work with this or am I going down the wrong path?

    Many thanks.
     
  2. jimbojimbo

    jimbojimbo New Member

    12
    3
    3
    Nov 9, 2017
    Ratings:
    +3
    Local Time:
    8:57 PM
    Beginning to think maybe im going overkill and should in fact just use nginx as I originally did.
     
  3. eva2000

    eva2000 Administrator Staff Member

    55,458
    12,257
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,841
    Local Time:
    5:57 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    FAQ item 2 covers users accounts you can't lock site accounts down to user level like cpanel/WHM as there is no 100% user isolation between site accounts on Centmin Mod. Sudo alone won't allow the sudo user to run Centmin Mod nginx vhost site right now.

    Pure-ftpd virtual ftp users only isolates ftp Pure-FTPD Virtual FTP Users but isn't fully jailed like cpanel/WHM as Centmin Mod is not made or setup for shared hosting like cpanel/WHM but more for usage by trusted user (myself/yourself).

    So yes nginx user is the way
     
  4. jimbojimbo

    jimbojimbo New Member

    12
    3
    3
    Nov 9, 2017
    Ratings:
    +3
    Local Time:
    8:57 PM
    Thanks so much for the reply. Makes total sense. I got too sucked into the shared hosting mentality when thinking this through.

    As always with these things... KISS :)

    Thanks again for the help and Centminmod!