can't exec /usr/sbin/named-xfer: Permission denied
Brian Elliott Finley
brian at thefinleys.com
Sun Mar 25 21:44:47 UTC 2001
I am running named in a chrooted jail on Debian 2.2 "potato".
named works fine, but named-xfer consistently farts with this
message:
"can't exec /usr/sbin/named-xfer: Permission denied"
named is started with this command:
"/usr/sbin/named -d 3 -u bind -g bind -t /chrootd/bind"
What am I missing?
I've tried running it manually with a chroot as the user it should be
running as (bind) and everything works fine. I've tried increasing the
debug level of named, but can't get any more info than the message above
in my logs.
If you're curious about my configuration, I've set it up with this
script:
<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>
#!/bin/sh
#
# Copyright (C) 2001 Brian Elliott Finley <brian at thefinleys.com>
#
DESTINATION="/chrootd/bind"
DIRS="/etc/bind/ /dev /usr/sbin/ /var/cache/bind/ /var/run/ /lib/"
FILES="/etc/bind/ /etc/localtime /dev/null /usr/sbin/named /usr/sbin/named-xfer /etc/services /etc/protocols /etc/resolv.conf /etc/ld.so.cache /etc/nsswitch.conf"
MKLIBS="/usr/src/boot-floppies/scripts/rootdisk/mklibs.sh"
for DIR in ${DIRS}
do
echo Making ${DESTINATION}${DIR}...
mkdir -p ${DESTINATION}${DIR} || exit 1
done
for FILE in ${FILES}
do
echo Copying ${FILE}...
rsync -aL ${FILE} ${DESTINATION}${FILE} || exit 1
done
grep ^bind: /etc/group > ${DESTINATION}/etc/group || exit 1
${MKLIBS} -v -d ${DESTINATION}/lib ${DESTINATION}/usr/sbin/* || exit 1
chown -R bind.bind ${DESTINATION}/var/cache/bind/
<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>
--
-------------------------------------------------------
Brian Elliott Finley VA Linux http://valinux.com/
http://thefinleys.com/ phone: 972.447.9563
http://systemimager.org/ phax: 801.912.6057
CSA, C2000, CNE, CLSE, MCP, and Certifiable Linux Nut
-------------------------------------------------------
More information about the bind-users
mailing list