[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

how to change owner of named ??



Hi

I'm using debian 3 stable. I have installed bind9 on the machine by # apt-get install bind9. Currently named process is running as root as seen below :
root       268  0.0  0.4 10196 2336 ?        S    18:05   0:00 /usr/sbin/named
root       270  0.0  0.4 10196 2336 ?        S    18:05   0:00 /usr/sbin/named
root       271  0.0  0.4 10196 2336 ?        S    18:05   0:00 /usr/sbin/named
root       272  0.0  0.4 10196 2336 ?        S    18:05   0:00 /usr/sbin/named
root       273  0.0  0.4 10196 2336 ?        S    18:05   0:00 /usr/sbin/named

I want to change the owner of the process from root to a restricted user because of the security reasons stated at many sites on the internet. When I do the following, I'm getting the following error message :

# chown named.named /usr/sbin/named
# chown -R named.named /etc/bind/*
# chmod 640 /etc/bind/*

# /etc/init.d/bind9 restart ; tail -f /var/log/syslog
....
Sep  1 17:57:51 ns named[258]: starting BIND 9.2.1
Sep  1 17:57:51 ns named[258]: using 1 CPU
Sep  1 17:57:51 ns named[261]: loading configuration from '/etc/bind/named.conf'
Sep  1 17:57:51 ns named[261]: none:0: open: /etc/bind/named.conf: permission denied
Sep  1 17:57:51 ns named[261]: loading configuration: permission denied
Sep  1 17:57:51 ns named[261]: exiting (due to fatal error)

It's clear that i'm taking a false step on changing the owner but i couldn't diagnose the problem ... I'll appreciate any suggestion about properly changing the owner of the named process ...

Reply to: