Solaris9, bind9, chroot, "user 'named' unknown"

Mark Andrews Mark_Andrews at isc.org
Fri Mar 17 08:20:30 UTC 2006


> I posted this within mailing.unix.bind-users but judging from the
> seriously lack of activity in that group, I think it was poor choice.
> So, I decided to cross post it into here. Sorry if anybody gets tiffled
> about the crosspost.
> 
> I'm trying to get Bind9 installed under chroot, but I'm running into an
> odd problem with "user 'named' unknown".
> 
> I have everything in the /opt/named/ directory for the bind binary. I
> can run it just find w/out the -u named. I have only the named user
> within /opt/named/etc/passwd, /opt/named/etc/group and
> /opt/named/etc/shadow with those files with the exact same permissions
> as the ones in /etc.
> 
> I run with the command: chroot /opt/named /sbin/named -u named -c
> /etc/named.conf
> Error: named: user 'named' unknown.
> 
> It works w/out using chroot (ie: using /etc/ files); it works in chroot
> w/out using -u named. But I can't seem to get it working under the
> named user while under chroot.
> 
> Any ideas?
> 
> Thanks much
> philip
> 
> 

 
        /*
         * Get the user and group information before changing the root
         * directory, so the administrator does not need to keep a copy  
         * of the user and group databases in the chroot'ed environment.
         */
        ns_os_inituserinfo(ns_g_username);
 

--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark_Andrews at isc.org



More information about the bind-users mailing list