[openSuSE 11.1] the working directory is not writable

[openSuSE 11.1] the working directory is not writable

Post by Lothar Beh » Sat, 10 Jan 2009 20:11:10


Hi,

I have read some postings here in the group that states to set the
group writability for the named directory.
But it still keeps logging the error message from the topic.

Log:

Jan 9 11:55:53 vmhost named[11970]: starting BIND 9.5.0-P2 -t /var/
lib/named -u named
Jan 9 11:55:53 vmhost named[11970]: found 1 CPU, using 1 worker
thread
Jan 9 11:55:53 vmhost named[11970]: loading configuration from '/etc/
named.conf'
Jan 9 11:55:53 vmhost named[11970]: the working directory is not
writable

My working directory is /var/lib/named and the permissions ara as
follows:

vmhost:/var/lib # ls -l named
total 52
-rw-r--r-- 1 named named 192 Jul 4 2001 127.0.0.zone
-rw-rw-r-- 1 named named 260 Jan 7 13:01 192.168.100.zone
-rw-rw-r-- 1 named named 230 Jan 6 22:35 192.168.150.zone
-rw-rw-r-- 1 named named 217 Jan 6 22:35 192.168.178.zone
-rw-rw-r-- 1 named named 467 Jan 9 11:30 behrens.de
drwxr-xr-x 2 named named 4096 Jan 6 20:51 dev
drwxr-xr-x 2 named named 4096 Dec 9 20:40 dyn
drwxr-xr-x 3 named named 4096 Jan 9 11:55 etc
-rw-r--r-- 1 named named 158 Jul 4 2001 localhost.zone
drwxr-xr-x 2 named named 4096 Jan 9 11:32 log
-rw-r--r-- 1 named named 2878 Dec 9 20:40 root.hint
drwxr-xr-x 2 named named 4096 Dec 9 20:40 slave
drwxr-xr-x 4 named named 4096 Jan 6 18:21 var

vmhost:/var/lib # ls -l

drwxrwxr-x 8 named named 4096 Jan 9 11:30 named

I have added g+w permissions to the zone files and behrens.de, but
this also doesn't help.

My named.conf looks like this:

options {

# The directory statement defines the name server's working
directory

directory "/var/lib/named";

# Write dump and statistics file to the log subdirectory. The
# pathenames are relative to the chroot jail.

dump-file "/var/log/named_dump.db";
statistics-file "/var/log/named.stats";

...

What am I doing wrong ?

Are the dump-file and statistics-file entries the reason ?

Thanks

Lothar
_______________________________________________
bind-users mailing list
XXXX@XXXXX.COM
https://lists.isc.org/mailman/listinfo/bind-users
 
 
 

[openSuSE 11.1] the working directory is not writable

Post by Jeremy C. » Tue, 13 Jan 2009 23:57:36


Chrooting to /var/lib/named


Your working directory is /var/lib/named/var/lib/named

...


Look under that ./var/lib

_______________________________________________
bind-users mailing list
XXXX@XXXXX.COM
https://lists.isc.org/mailman/listinfo/bind-users

 
 
 

[openSuSE 11.1] the working directory is not writable

Post by Chris Buxt » Wed, 14 Jan 2009 02:31:26


As I recall from working with SUSE Linux in the past, that's correct,
but it's a symlink. /var/lib/named/var/lib/named -> ../.., or
something like that. It links back to /var/lib/named (the chroot dir
root) itself.

This way, you can disable the chroot jail and nothing breaks. (/etc/
named.conf is copied into the chroot environment every time you
(re)start named with the init script.)

Chris Buxton
Professional Services
Men & Mice

_______________________________________________
bind-users mailing list
XXXX@XXXXX.COM
https://lists.isc.org/mailman/listinfo/bind-users
 
 
 

[openSuSE 11.1] the working directory is not writable

Post by Mark Andre » Wed, 14 Jan 2009 07:42:05


In message < XXXX@XXXXX.COM >, Lothar Behrens writes:

Upgrade:

2389. [bug] Move the "working directory writable" check to after
the ns_os_changeuser() call. [RT #18326]

--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: XXXX@XXXXX.COM
_______________________________________________
bind-users mailing list
XXXX@XXXXX.COM
https://lists.isc.org/mailman/listinfo/bind-users