Starting supervisord as root or not?

前端 未结 5 1075
别跟我提以往
别跟我提以往 2021-02-01 02:13

Supervisor is running on 3.0:

pip freeze | grep supervisor
supervisor==3.0

When starting supervisord from the command line:

sud         


        
5条回答
  •  天涯浪人
    2021-02-01 02:46

    When you start supervisor as root, you need to specify a user for supervisor to drop to for security reasons

    From the supervisor docs (http://supervisord.org/configuration.html):

    user
    If supervisord is run as the root user, switch users to this UNIX user account before doing any meaningful processing. 
    This value has no effect if supervisord is not run as root.
    

    Put this in your conf file:

    [supervisord]
    user=nobody
    

    The user should be a user which exists, but does not have sudo permissions (nobody can work).

提交回复
热议问题