[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-security] running named -u named
- Subject: Re: [cobalt-security] running named -u named
 
- From: shimi <shimi@xxxxxxxxxxxxxxxx>
 
- Date: Fri, 15 Jun 2001 00:42:44 -0700 (PDT)
 
- List-id: Mailing list for users to address network security on Cobalt products. <cobalt-security.list.cobalt.com>
 
On Fri, 15 Jun 2001, cpaul wrote:
> 
> 
> 
> i changed my init.d/named script so that it runs named as
> 
>   named -u named -g named
> 
> 
> but it has permission problems:
> 
> Jun 15 12:13:48 www named[2884]: unix control "/var/run/ndc" unlink failed: Permission denied
> Jun 15 12:13:48 www named[2884]: ctl_server: bind: /var/run/ndc: Address already in use
> Jun 15 12:13:48 www named[2884]: couldn't create pid file '/var/run/named.pid'
> 
> i can't really make /var/run/ writable by public?
> 
> or do i make a directory /var/run/named/ and chown it named?  
> 
as root
kill named
chown named /var/run/ndc
chgrp named /var/run/ndc
chown named /var/run/named.pid
chgrp named /var/run/named.pid
run named
should work,
- shimi