getpwnam() restricted in a chrooted environment?
getpwnam() restricted in a chrooted environment?
- Subject: getpwnam() restricted in a chrooted environment?
- From: Axel Rau <email@hidden>
- Date: Tue, 10 Mar 2009 17:39:46 +0100
Hi all,
while installing hylafax 5.2.8 on darwin 9, getpwnam fails on the
chrooted server.
The relevant function is:
-------------
void
UUCPLock::setupIDs()
{
if (UUCPuid == (uid_t) -1) {
const passwd *pwd = getpwnam("uucp");
if (!pwd)
faxApp::fatal("Can not deduce identity of UUCP");
UUCPuid = pwd->pw_uid;
UUCPgid = pwd->pw_gid;
endpwent(); // paranoia
}
}
-------------
Putting the code in a small c-program, it runs as expected.
Is getpwnam() restricted some how in a chrooted environment?
Any help greatly appreciated,
Axel
--- ar3
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden