Univention Bugzilla – Bug 50395
getpwuid() sometimes fails with nscd - Permission denied for machine.secret?
Last modified: 2019-11-05 22:24:30 CET
Customer uses a php function to get the home-path for a user:
$aUser = (posix_getpwuid(posix_geteuid()));
Sometimes it seems nscd is very busy and therefore does not reply with the needed information of the user:
EUID: 8869 User: 1 LAST POSIX ERROR: 13: Permission denied
We use `nscd` by default as /etc/machine.secret is not readable by world.
The "work-around" to make the credentials readable by anyone only sometimes worked.
Quick ideas: https://docs.software-univention.de/performance-guide-4.4.html#nscd
ucr search nscd/passwd* nscd/threads