control: close -1

[2012-06-25 12:00] Andras Korn <korn-debb...@elan.rulez.org>
> Package: runit
> Version: 2.1.1-6.2
> Severity: normal
> 
> 
> When system run with libnss-ldapd, chpst fails to change user
> not listed in /etc/passwd (aka user in LDAP database).
> 
> Rebuilding package on the target system, this problem disappear.
> chpst binary is linked statically, so I guess linked version of
> getpwnam() might lack ability to look /etc/nssswitch.conf.
> 
> I suppose this problem caused by package build environment.
>
> FWIW, I use the following workaround to this problem:
> 
> #!/bin/sh
> [...]
> RUNASUID=$(getent passwd $RUNASUSER | cut -d: -f3)
> RUNASGROUPS=$(id -G $RUNASUSER | tr ' ' ':')
> [...]
> exec chpst -u :$RUNASUID:$RUNASGROUPS [...]

chpst is no longer compiled statically, so issue should be resolved now.
Feel free to reopen bug if I am wrong.

Reply via email to