Supervisor / supervisor

Supervisor process control system for Unix (supervisord)
http://supervisord.org
Other
8.46k stars 1.24k forks source link

incorrect user groups when running from supervisord (with LDAP) #1508

Closed AlekseiSaff closed 2 years ago

AlekseiSaff commented 2 years ago

we have our linux servers integrated with LDAP server (FreeIPA). So groups for users are defined in LDAP server. And that is causing an issue for file access. Example:

Let's make a script and run it from shell and from supervisors `#!/bin/bash

echo "Hello" > /tmp/test.txt echo $(whoami) >> /tmp/test.txt echo $(id) >> /tmp/test.txt`

output when running from pure shell

Hello lt uid=4000(lt) gid=4000(lt) groups=4000(lt),4001(devel),4010(nas),1368600028(docker),1368676011(gitlab),1368676012(wireshark)

Ouput when running from superviord

Hello lt uid=4000(lt) gid=4000(lt) groups=4000(lt)

As you can see only local groups are available (from /etc/passwd /etc/groups)

AlekseiSaff commented 2 years ago

sorry. found an answer. Not a supervisord related