docker icon indicating copy to clipboard operation
docker copied to clipboard

CRIT Supervisor is running as root

Open fridela75 opened this issue 4 years ago • 1 comments

Running the cron example leads to the following log message:

CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.

When I change the config to include user=www-data I get an error due to /var/log/supervisord/supervisord.log not being writable (owned by root)

Question is: does supervisord need to run as root? Is is possible to change this without breaking things? It looks to me like it only executes cron as www-data so it should not require more permissions.

fridela75 avatar Sep 03 '20 09:09 fridela75

Any news on that? If it is possible to drop permissions this should happen. If not the supervisor configuration should be modified to add a user=root in order to silence that warning. Both is okay (the first one of course better) but leaving it like this with the warning popping up is in my eyes not the best idea

winnieXY avatar Feb 16 '22 20:02 winnieXY