Closed AlekseiSaff closed 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)
sorry. found an answer. Not a supervisord related
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)