Browse Source

add named user and use /var/named, not /etc/namedb as the named dir

OPENBSD_2_4
millert 26 years ago
parent
commit
db035c6155
3 changed files with 16 additions and 15 deletions
  1. +3
    -3
      src/etc/Makefile
  2. +1
    -0
      src/etc/master.passwd
  3. +12
    -12
      src/etc/mtree/4.4BSD.dist

+ 3
- 3
src/etc/Makefile View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.86 1998/05/05 21:51:51 deraadt Exp $
# $OpenBSD: Makefile,v 1.87 1998/05/23 19:22:30 millert Exp $
TZDIR= /usr/share/zoneinfo
LOCALTIME= US/Pacific
@ -131,8 +131,8 @@ distribution-etc-root-var: distrib-dirs
${DESTDIR}/etc/ppp; \
${INSTALL} -c -o root -g wheel -m 644 ppp.secret.sample \
${DESTDIR}/etc/ppp)
cd namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \
${DESTDIR}/etc/namedb
cd namedb; ${INSTALL} -c -o named -g ${BINGRP} -m 644 ${NAMEDB} \
${DESTDIR}/var/named
/bin/rm -f ${DESTDIR}/etc/localtime
ln -s ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime
/bin/rm -f ${DESTDIR}/etc/rmt


+ 1
- 0
src/etc/master.passwd View File

@ -4,4 +4,5 @@ operator:*:2:5::0:0:System &:/operator:/sbin/nologin
bin:*:3:7::0:0:Binaries Commands and Source,,,:/:/sbin/nologin
uucp:*:66:1::0:0:UNIX-to-UNIX Copy:/var/spool/uucppublic:/usr/libexec/uucp/uucico
www:*:67:67::0:0:HTTP server:/var/www:/sbin/nologin
named:*:70:7:BIND Name Service Daemon:/var/named:/sbin/nologin
nobody:*:32767:32767::0:0:Unprivileged user:/nonexistent:/sbin/nologin

+ 12
- 12
src/etc/mtree/4.4BSD.dist View File

@ -1,4 +1,4 @@
# $OpenBSD: 4.4BSD.dist,v 1.51 1998/05/19 16:55:26 millert Exp $
# $OpenBSD: 4.4BSD.dist,v 1.52 1998/05/23 19:22:32 millert Exp $
/set type=dir uname=root gname=wheel mode=0755
# .
@ -48,17 +48,6 @@ mtree
# ./etc/mtree
..
# ./etc/namedb
namedb
# ./etc/namedb/tmp
tmp
# ./etc/namedb/tmp
..
# ./etc/namedb
..
# ./etc/ppp
ppp
# ./etc/ppp
@ -1607,6 +1596,17 @@ msgs
# ./var/msgs
..
# ./var/named
named uname=named gname=bin mode=0755
# ./var/named/dev
dev
# ./var/named/dev
..
# ./var/named
..
# ./var/obj XXX
#obj
# ./var/obj XXX


Loading…
Cancel
Save