Get the most out of your Centmin Mod LEMP stack
Become a Member

DeployHQ and nginx user for site

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

  1. jimbojimbo

    jimbojimbo New Member

    7
    2
    3
    Nov 9, 2017
    Ratings:
    +2
    Local Time:
    11:43 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

    7
    2
    3
    Nov 9, 2017
    Ratings:
    +2
    Local Time:
    11:43 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

    30,606
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,297
    Local Time:
    9:43 AM
    Nginx 1.13.x
    MariaDB 5.5
    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
     
    • Like Like x 1
  4. jimbojimbo

    jimbojimbo New Member

    7
    2
    3
    Nov 9, 2017
    Ratings:
    +2
    Local Time:
    11:43 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!
     
    • Like Like x 1