Gentoo Archives: gentoo-user

From: Michael Sullivan <michael@××××××××××××.com>
To: gentoo-user <gentoo-user@l.g.o>
Subject: [gentoo-user] OT - Weird Permissions error
Date: Mon, 12 Dec 2005 22:06:02
Message-Id: 1134424675.9896.11.camel@camille.espersunited.com
1 I'm having a strange problem. I set up a DNS server for my domain
2 today, and when I tried to start it, it wouldn't start. I consulted the
3 log files and found this:
4
5 Dec 12 15:51:38 bullet named[7707]: starting BIND 9.2.5 -u named -n 1
6 Dec 12 15:51:38 bullet named[7707]: using 1 CPU
7 Dec 12 15:51:39 bullet named[7709]: loading configuration from
8 '/etc/bind/named.conf'
9 Dec 12 15:51:39 bullet named[7709]: listening on IPv4 interface lo,
10 127.0.0.1#53
11 Dec 12 15:51:39 bullet named[7709]: listening on IPv4 interface eth0,
12 192.168.1.2#53
13 Dec 12 15:51:39 bullet named[7709]: command channel listening on
14 127.0.0.1#953
15 Dec 12 15:51:39 bullet named[7709]: couldn't open pid file
16 '/var/run/named.pid': Permission denied
17 Dec 12 15:51:39 bullet named[7709]: exiting (due to early fatal error)
18
19 When I was trying to start the named server I did so as the root user.
20 I checked the permissions on /var/run:
21
22 bullet log # ls -l /var
23 total 48
24 drwxr-xr-x 4 named named 4096 Dec 12 14:13 bind
25 drwxr-xr-x 7 root root 4096 Sep 25 12:55 cache
26 drwxr-xr-x 4 root root 4096 Sep 6 07:04 db
27 drwxr-xr-x 2 root root 4096 Mar 10 2005 empty
28 drwxr-xr-x 19 root root 4096 Dec 11 00:49 lib
29 drwxrwxr-x 3 root uucp 4096 Nov 27 09:31 lock
30 drwxr-xr-x 9 root root 4096 Dec 12 15:52 log
31 lrwxrwxrwx 1 root root 15 Jul 5 17:56 mail -> /var/spool/mail
32 drwxr-xr-x 10 root root 4096 Dec 12 15:51 run
33 drwxr-xr-x 9 root root 4096 Sep 28 13:09 spool
34 drwxr-xr-x 2 root root 4096 Mar 10 2005 state
35 drwxrwxrwt 5 root root 4096 Dec 12 14:41 tmp
36 drwxr-xr-x 4 root root 4096 Jul 3 04:14 www
37
38 As you can see the run directory is 755, which should be acceptible -
39 not to mention that it was the root account that was trying to start
40 named. I checked inside /var/run itself:
41
42 bullet log # ls -l /var/run
43 total 72
44 -rw-r--r-- 1 root root 5 Dec 12 14:57 apache2.pid
45 srwx------ 1 apache root 0 Dec 12 14:57 cgisock
46 drwxr-xr-x 2 root root 4096 Oct 28 15:32 console
47 -rw-r--r-- 1 root root 6 Dec 4 09:18 cron.pid
48 drwx------ 3 root root 4096 Dec 12 14:42 dovecot
49 drwxr-xr-x 2 mysql mysql 4096 Dec 11 17:21 mysqld
50 drwxr-xr-x 2 named named 4096 Dec 12 14:13 named
51 -rw-r--r-- 1 root root 4 Nov 27 14:32 ntpd.pid
52 drwxr-xr-x 2 ldap ldap 4096 Dec 11 00:47 openldap
53 -rw------- 1 root root 512 Nov 27 09:31 random-seed
54 -rw-r--r-- 1 nobody root 5 Dec 10 22:14 rpc.statd.pid
55 drwxr-xr-x 2 root root 4096 Nov 27 14:32 samba
56 drwxr-xr-x 4 root utmp 4096 Dec 1 16:26 screen
57 -rw------- 1 root smmsp 45 Dec 12 09:43 sendmail.pid
58 -rw-r--r-- 1 root root 5 Nov 27 09:31 sshd.pid
59 -rw------- 1 root root 5 Dec 12 15:52 syslog-ng.pid
60 drwxr-xr-x 2 root root 4096 Jul 5 16:58 usb
61 -rw-rw-r-- 1 root utmp 6144 Dec 12 14:33 utmp
62
63 There is a named directory there, but it's empty. I assume that it was
64 automatically created when I emerged bind early this afternoon. Any
65 thoughts on what's causing this error?
66
67 --
68 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] OT - Weird Permissions error Jonathan Nichols <jnichols@×××.net>
Re: [gentoo-user] OT - Weird Permissions error kashani <kashani-list@××××××××.net>