ich denke, die Lösung liegt (fast) auf der Hand, aber ich komme nicht darauf.
Nachdem ich schon mehrere Server mit Woody installiert habe und das Debianhowto komplett durchgearbeitet habe, bin ich gerade dabei, das Gleiche mit Sarge zu machen.
Also erstmal:
Code: Select all
apt-get install bind9
/etc/init.d/bind9 stop
useradd -c Bind9-NameServer -s /bin/false bind
Code: Select all
mkdir /var/run/bind
chown bind:users /var/run/bind/
chown bind:users /etc/bind/rndc.key
chown -R bind:users /var/cache/bind/
emacs /etc/bind/named.conf
in /etc/init.d/bind9 so lange herumeditiert habe mit
Code: Select all
OPTS=""
OPTS="-n 1 -u bind"
--pidfile /var/run/named.pid --exec /usr/sbin/named -- $OPTS
--pidfile /var/run/bind/named.pid --exec /usr/sbin/named -- $OPTS
Code: Select all
apt-get remove bind9Code: Select all
apt-get install bind9Code: Select all
debian:~# ls -la /etc/bind
total 12
drwxr-sr-x 2 root bind 4096 May 10 13:00 .
drwxr-xr-x 61 root root 4096 May 10 13:00 ..
-rw------- 1 bind bind 77 May 10 13:00 rndc.keyCode: Select all
debian:~# apt-get install bind9
Reading Package Lists... Done
Building Dependency Tree... Done
Suggested packages:
bind9-doc
The following NEW packages will be installed:
bind9
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/276kB of archives.
After unpacking 729kB of additional disk space will be used.
Selecting previously deselected package bind9.
(Reading database ... 26756 files and directories currently installed.)
Unpacking bind9 (from .../bind9_1%3a9.2.4-1_i386.deb) ...
Setting up bind9 (9.2.4-1) ...
chgrp: cannot access `/etc/bind/named.conf*': No such file or directory
dpkg: error processing bind9 (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
bind9
E: Sub-process /usr/bin/dpkg returned an error code (1)
Und das "Oder?" ist die Frage. Wo liegt mein Fehler?
Gruß
Marc
PS: Sorry für die apt-get Newbie-Fragen; zweit 2 Jahren benutze ich Woody und brauchte bisher nur apt-get [install remove update upgrade], das hat alles wunderbar geklappt. Nur das jetzige Problem konnte leider nicht durch eine 1,5stündige Suche hier und bei Google gelöst werden.