1
I'm testing some software under Debian X32. Its a chroot environment, and its entered upon as root. Some of the tests are failing because of the root account:
make test
...
# Failed test 'Testing that we aren't running as a privileged user, such as root'
# at ../test/recipes/40-test_rehash.t line 49.
...
# Looks like you failed 1 test of 5.
../test/recipes/40-test_rehash.t ........... Dubious, test returned 1
(wstat 256, 0x100)
Failed 1/5 subtests
...
Trying to drop privileges by su'ing fails:
# su - jdoe
No passwd entry for user 'jdoe'
How do I drop privileges in a Debian Chroot?
2The problem is probably that the user does not exist in the new root. You should be able to create it. – AFH – 2016-06-23T12:14:31.630
@AFH - That worked. Please provide an answer so I can accept. Any reason the Chroot does not use (or get access to) the user database? – jww – 2016-06-23T18:52:07.313