Package: runit
Version: 1.0.5-3
Severity: important
It appears that chpst does not recognize users and groups not in /etc/passwd or
/etc/group. Here is an illustration of the problem:
[EMAIL PROTECTED]:0:~> getent passwd daemon admin
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
admin:x:2010:2014:admin user:/home/admin:/bin/bash
[EMAIL PROTECTED]:0:~> getent group daemon admin
daemon:x:1:
admin:x:2014:
[EMAIL PROTECTED]:0:~> grep -E '^daemon|^admin' /etc/passwd
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
[EMAIL PROTECTED]:0:~> grep -E '^daemon|^admin' /etc/group
daemon:x:1:
[EMAIL PROTECTED]:0:~> f() { echo "$UID:$GID" ; }; export -f f
[EMAIL PROTECTED]:0:~> chpst -U daemon:daemon sh -c f
1:1
[EMAIL PROTECTED]:0:~> chpst -U admin:admin sh -c f
chpst: fatal: unknown user/group: admin:admin
[EMAIL PROTECTED]:111:~>
The problem happens with the '-u' option as well as '-U'. Here is a copy of
/etc/nsswitch.conf from the same machine:
[EMAIL PROTECTED]:0:~> cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: compat ldap
group: compat ldap
shadow: compat ldap
hosts: files dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
[EMAIL PROTECTED]:0:~>
Probably the documentation could be made clearer at the least.
If support for NSS is undesirably for whatever reason, one could imagine
allowances for specifying users/groups by uid/gid.
Thanks for maintaining!
jamie.
-- System Information:
Debian Release: 3.1
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.8-12-amd64-k8-smp
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]