the dns configure file on ubuntu /etc/bind/named.conf owner group should be bind
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14452 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
94e0a7e615
commit
cdd0af2092
@ -932,7 +932,12 @@ sub update_namedconf {
|
||||
for my $l (@newnamed) { print $newnameconf $l; }
|
||||
flock($newnameconf,LOCK_UN);
|
||||
close($newnameconf);
|
||||
chown (scalar(getpwnam('root')),scalar(getgrnam('named')),$namedlocation);
|
||||
if ( $distro =~ /ubuntu.*/ ){
|
||||
chown (scalar(getpwnam('root')),scalar(getgrnam('bind')),$namedlocation);
|
||||
}
|
||||
else{
|
||||
chown (scalar(getpwnam('root')),scalar(getgrnam('named')),$namedlocation);
|
||||
}
|
||||
}
|
||||
|
||||
sub add_or_delete_records {
|
||||
|
Loading…
Reference in New Issue
Block a user