On Wed, Oct 01, 2008 at 04:12:01PM +0000, martin f krafft wrote:
> Package: nsd3
> Version: 3.0.7-2
> Severity: important
> 
> wall:/etc/nsd3# ls -la /var/lib/nsd3/nsd.db
> -rw-r--r-- 1 root root 23580 2008-10-01 18:09 /var/lib/nsd3/nsd.db
> wall:/etc/nsd3# nsdc rebuild
> wall:/etc/nsd3# ls -la /var/lib/nsd3/nsd.db
> -rw------- 1 root root 23580 2008-10-01 18:10 /var/lib/nsd3/nsd.db
> 
> This causes the server to fail to reload. It is due to my 0077
> umask. I suggest that nsdc should always write a root:nsd:640 file
> and override the umask!

Nope, you're the one being wrong, you should not run nsdc as root,
unless you're starting nsd.

You should do : su -c nsd nsdc rebuild

Then even with a 700 umask, file will be owned by nsd:nsd and be
readable.

I'll mention it in a future upload in the README.Debian.


-- 
·O·  Pierre Habouzit
··O                                                madco...@debian.org
OOO                                                http://www.madism.org

Attachment: pgpLjgIYZl6zi.pgp
Description: PGP signature

Reply via email to