From 1bf9d5d9518e789360439c1db3d568b113caf60d Mon Sep 17 00:00:00 2001 From: "Rodney W. Grimes" Date: Sun, 20 Jun 1993 13:41:45 +0000 Subject: [PATCH] Initial import of 386BSD 0.1 othersrc/etc --- etc/MAKEDEV | 160 +++++++++++++ etc/MAKEDEV.local | 49 ++++ etc/Makefile | 76 ++++++ etc/aliases | 50 ++++ etc/crontab | 7 + etc/csh.cshrc | 1 + etc/csh.login | 1 + etc/csh.logout | 1 + etc/daily | 148 ++++++++++++ etc/disktab | 101 ++++++++ etc/dm.conf | 19 ++ etc/etc.i386/MAKEDEV | 160 +++++++++++++ etc/etc.i386/disktab | 101 ++++++++ etc/etc.i386/fstab.wd | 3 + etc/ftpusers | 4 + etc/gettytab | 143 ++++++++++++ etc/group | 15 ++ etc/hosts | 13 ++ etc/hosts.equiv | 2 + etc/hosts.lpd | 1 + etc/inetd.conf | 34 +++ etc/mail/aliases | 50 ++++ etc/man.conf | 34 +++ etc/master.passwd | 14 ++ etc/monthly | 27 +++ etc/motd | 4 + etc/mtree/BSD.root.dist | 95 ++++++++ etc/mtree/BSD.usr.dist | 494 +++++++++++++++++++++++++++++++++++++++ etc/mtree/BSD.var.dist | 72 ++++++ etc/namedb/localhost.rev | 10 + etc/namedb/named.boot | 21 ++ etc/namedb/root.cache | 22 ++ etc/netstart | 29 +++ etc/networks | 16 ++ etc/phones | 7 + etc/printcap | 4 + etc/protocols | 15 ++ etc/rc | 174 ++++++++++++++ etc/rc.local | 23 ++ etc/remote | 40 ++++ etc/root/dot.cshrc | 36 +++ etc/root/dot.klogin | 2 + etc/root/dot.login | 4 + etc/root/dot.profile | 7 + etc/security | 36 +++ etc/services | 81 +++++++ etc/shells | 6 + etc/syslog.conf | 8 + etc/ttys | 40 ++++ etc/weekly | 59 +++++ 50 files changed, 2519 insertions(+) create mode 100644 etc/MAKEDEV create mode 100644 etc/MAKEDEV.local create mode 100644 etc/Makefile create mode 100644 etc/aliases create mode 100644 etc/crontab create mode 100644 etc/csh.cshrc create mode 100644 etc/csh.login create mode 100644 etc/csh.logout create mode 100644 etc/daily create mode 100644 etc/disktab create mode 100644 etc/dm.conf create mode 100644 etc/etc.i386/MAKEDEV create mode 100644 etc/etc.i386/disktab create mode 100644 etc/etc.i386/fstab.wd create mode 100644 etc/ftpusers create mode 100644 etc/gettytab create mode 100644 etc/group create mode 100644 etc/hosts create mode 100644 etc/hosts.equiv create mode 100644 etc/hosts.lpd create mode 100644 etc/inetd.conf create mode 100644 etc/mail/aliases create mode 100644 etc/man.conf create mode 100644 etc/master.passwd create mode 100644 etc/monthly create mode 100644 etc/motd create mode 100644 etc/mtree/BSD.root.dist create mode 100644 etc/mtree/BSD.usr.dist create mode 100644 etc/mtree/BSD.var.dist create mode 100644 etc/namedb/localhost.rev create mode 100644 etc/namedb/named.boot create mode 100644 etc/namedb/root.cache create mode 100755 etc/netstart create mode 100644 etc/networks create mode 100644 etc/phones create mode 100644 etc/printcap create mode 100644 etc/protocols create mode 100644 etc/rc create mode 100644 etc/rc.local create mode 100644 etc/remote create mode 100644 etc/root/dot.cshrc create mode 100644 etc/root/dot.klogin create mode 100644 etc/root/dot.login create mode 100644 etc/root/dot.profile create mode 100644 etc/security create mode 100644 etc/services create mode 100644 etc/shells create mode 100644 etc/syslog.conf create mode 100644 etc/ttys create mode 100644 etc/weekly diff --git a/etc/MAKEDEV b/etc/MAKEDEV new file mode 100644 index 000000000000..00fc16288a1a --- /dev/null +++ b/etc/MAKEDEV @@ -0,0 +1,160 @@ +#!/bin/sh - +# +# Copyright (c) 1990 The Regents of the University of California. +# All rights reserved. +# +# Written and contributed by W. Jolitz 12/90 +# +# Redistribution and use in source and binary forms are permitted provided +# that: (1) source distributions retain this entire copyright notice and +# comment, and (2) distributions including binaries display the following +# acknowledgement: ``This product includes software developed by the +# University of California, Berkeley and its contributors'' in the +# documentation or other materials provided with the distribution and in +# all advertising materials mentioning features or use of this software. +# Neither the name of the University nor the names of its contributors may +# be used to endorse or promote products derived from this software without +# specific prior written permission. +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +# +# @(#)MAKEDEV 5.2 (Berkeley) 6/22/90 +# +# Device "make" file. Valid arguments: +# std standard devices +# local configuration specific devices +# +# Tapes: +# wt* QIC-interfaced (e.g. not SCSI) 3M cartridge tape +# +# Disks: +# wd* "winchester" disk drives (ST506,IDE,ESDI,RLL,...) +# fd* "floppy" disk drives (3 1/2", 5 1/4") +# as* "SCSI" disk/tape/CDROM drives +# +# Terminal ports: +# com* standard PC COM ports +# +# Pseudo terminals: +# pty* set of 16 master and slave pseudo terminals +# +# Printers: +# +# Call units: +# +# Special purpose devices: +# flog* kernel logging device +# + +PATH=/sbin:/bin/:/usr/bin +umask 77 +for i +do +case $i in + +std) + rm -f console drum mem kmdem null tty klog stdin stdout stderr + mknod console c 0 0 + mknod drum c 4 0 ; chmod 640 drum ; chgrp kmem drum + mknod kmem c 2 1 ; chmod 640 kmem ; chgrp kmem kmem + mknod mem c 2 0 ; chmod 640 mem ; chgrp kmem mem + mknod null c 2 2 ; chmod 666 null + mknod tty c 1 0 ; chmod 666 tty + mknod klog c 7 0 ; chmod 600 klog + mknod stdin c 53 0 ; chmod 666 stdin + mknod stdout c 53 1 ; chmod 666 stdout + mknod stderr c 53 2 ; chmod 666 stderr + rm -f fd/* + mkdir fd > /dev/null 2>&1 + (cd fd && eval `echo "" | awk ' BEGIN { \ + for (i = 0; i < 64; i++) \ + printf("mknod %d c 53 %d;", i, i)}'`) + chown -R bin.bin fd + chmod 555 fd + chmod 666 fd/* + ;; + +wt*) + umask 2 + mknod wt0 b 3 0 + mknod rwt0 c 10 0 + umask 77 + ;; + +fd*|wd*|as*) + umask 2 ; unit=`expr $i : '..\(.*\)'` + case $i in + fd*) name=fd; blk=2; chr=9;; + wd*) name=wd; blk=0; chr=3;; + as*) name=as; blk=4; chr=13;; + esac + rm -f $name$unit? r$name$unit? + case $unit in + 0|1) + mknod ${name}${unit}a b $blk `expr $unit '*' 8 + 0` + mknod ${name}${unit}b b $blk `expr $unit '*' 8 + 1` + mknod ${name}${unit}c b $blk `expr $unit '*' 8 + 2` + mknod ${name}${unit}d b $blk `expr $unit '*' 8 + 3` + mknod ${name}${unit}e b $blk `expr $unit '*' 8 + 4` + mknod ${name}${unit}f b $blk `expr $unit '*' 8 + 5` + mknod ${name}${unit}g b $blk `expr $unit '*' 8 + 6` + mknod ${name}${unit}h b $blk `expr $unit '*' 8 + 7` + mknod r${name}${unit}a c $chr `expr $unit '*' 8 + 0` + mknod r${name}${unit}b c $chr `expr $unit '*' 8 + 1` + mknod r${name}${unit}c c $chr `expr $unit '*' 8 + 2` + mknod r${name}${unit}d c $chr `expr $unit '*' 8 + 3` + mknod r${name}${unit}e c $chr `expr $unit '*' 8 + 4` + mknod r${name}${unit}f c $chr `expr $unit '*' 8 + 5` + mknod r${name}${unit}g c $chr `expr $unit '*' 8 + 6` + mknod r${name}${unit}h c $chr `expr $unit '*' 8 + 7` + chgrp operator ${name}${unit}[a-h] r${name}${unit}[a-h] + chmod 640 ${name}${unit}[a-h] r${name}${unit}[a-h] + ;; + *) + echo bad unit for disk in: $i + ;; + esac + umask 77 + ;; + +com*) + unit=`expr $i : 'com\(.*\)'` + rm -f com$unit + mknod com$unit c 8 $unit + ;; + +pty*) + class=`expr $i : 'pty\(.*\)'` + case $class in + 0) offset=0 name=p;; + 1) offset=16 name=q;; + 2) offset=32 name=r;; + 3) offset=48 name=s;; +# Note that telnetd, rlogind, and xterm (at least) only look at p-s. + 4) offset=64 name=t;; + *) echo bad unit for pty in: $i;; + esac + case $class in + 0|1|2|3|4) + umask 0 + eval `echo $offset $name | awk ' { b=$1; n=$2 } END { + for (i = 0; i < 16; i++) + printf("mknod tty%s%x c 5 %d; \ + mknod pty%s%x c 6 %d; ", \ + n, i, b+i, n, i, b+i); }'` + umask 77 + if [ $class = 1 ]; then + mv ttyqf ttyv0; mv ptyqf ptyv0 + fi + ;; + esac + ;; + +local) + umask 0 + sh MAKEDEV.local + ;; + +esac +done diff --git a/etc/MAKEDEV.local b/etc/MAKEDEV.local new file mode 100644 index 000000000000..3e06d0a73df9 --- /dev/null +++ b/etc/MAKEDEV.local @@ -0,0 +1,49 @@ +#!/bin/sh - +# +# Copyright (c) 1991 The Regents of the University of California. +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the University of +# California, Berkeley and its contributors. +# 4. Neither the name of the University nor the names of its contributors +# may be used to endorse or promote products derived from this software +# without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. +# +# @(#)MAKEDEV.local 5.1 (Berkeley) 3/22/91 +# + +# Local device MAKEDEV script. + +PATH=/sbin:/bin:/usr/bin +umask 77 +for i +do +case $i in + +*) + echo 'MAKEDEV.local: no such device.' + ;; +esac +done diff --git a/etc/Makefile b/etc/Makefile new file mode 100644 index 000000000000..52225d6af7f0 --- /dev/null +++ b/etc/Makefile @@ -0,0 +1,76 @@ +# @(#)Makefile 5.11 (Berkeley) 5/21/91 + +NOOBJ= oobj + +# disktab may be wrong -- hcx9 is a tahoe, but gets its own. +# -rw-r--r-- +BIN1= aliases csh.cshrc csh.login csh.logout crontab daily dm.conf \ + ftpusers gettytab group hosts hosts.equiv hosts.lpd inetd.conf \ + man.conf monthly motd netstart phones printcap protocols rc \ + rc.local remote security services shells syslog.conf ttys weekly \ + etc.${MACHINE}/disktab + +# -rw-rw-rw- +BIN2= motd + +MTREE= BSD.root.dist BSD.usr.dist BSD.var.dist +NAMEDB= localhost.rev named.boot root.cache +PCS= pcs750.bin +WCS1= wcs fppwcs poc poc1 poc2 fppoc +WCS2= fpevent fppwcs fppwcs_dual hdcwcs load_diags start_fpp wcs wcs_dual + +all clean cleandir depend etc install lint: + +distribution: + install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc + install -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc + install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc + (cd ${DESTDIR}/etc; \ + pwd_mkdb -p master.passwd; \ + mv master.passwd.pag passwd.pag; \ + mv master.passwd.dir passwd.dir; \ + mv master.passwd.orig passwd) + install -c -o ${BINOWN} -g ${BINGRP} -m 555 \ + MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev + (cd root; \ + install -c -o root -g wheel -m 644 dot.cshrc \ + ${DESTDIR}/root/.cshrc; \ + install -c -o root -g wheel -m 644 dot.klogin \ + ${DESTDIR}/root/.klogin; \ + install -c -o root -g wheel -m 644 dot.login \ + ${DESTDIR}/root/.login; \ + install -c -o root -g wheel -m 644 dot.profile \ + ${DESTDIR}/root/.profile; \ + rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ + ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ + ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) + cd mtree; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${MTREE} \ + ${DESTDIR}/etc/mtree + cd namedb; install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \ + ${DESTDIR}/etc/namedb + install -c -o ${BINOWN} -g operator -m 664 /dev/null \ + ${DESTDIR}/etc/dumpdates + install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ + ${DESTDIR}/var/log/messages + install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ + ${DESTDIR}/var/log/maillog + install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ + ${DESTDIR}/var/log/lpd-errs + install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ + ${DESTDIR}/var/run/utmp + (cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ + fstab.* ${DESTDIR}/) +.if ${MACHINE} == "tahoe" + (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \ + ${DESTDIR}/) +.endif +.if ${MACHINE} == "vax" + (cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \ + ${DESTDIR}/) +.endif + +hcx9-distribution: + (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \ + ${DESTDIR}/) + +.include diff --git a/etc/aliases b/etc/aliases new file mode 100644 index 000000000000..7f23c1d18b79 --- /dev/null +++ b/etc/aliases @@ -0,0 +1,50 @@ +# +# @(#)aliases 5.3 (Berkeley) 5/24/90 +# +# Aliases in this file will NOT be expanded in the header from +# Mail, but WILL be visible over networks or from /bin/mail. +# +# >>>>>>>>>> The program "newaliases" must be run after +# >> NOTE >> this file is updated for any changes to +# >>>>>>>>>> show through to sendmail. +# + +# Basic system aliases -- these MUST be present +MAILER-DAEMON: postmaster +postmaster: root + +# General redirections for pseudo accounts +bin: root +daemon: root +games: root +ingres: root +nobody: root +system: root +toor: root +uucp: root + +# Well-known aliases +root: +manager: +dumper: +operator: + +# OFFICIAL CSRG/BUG ADDRESSES + +# FTP BUG ADDRESS +ftp-bugs: bigbug@ucbvax.berkeley.edu + +# DISTRIBUTION PERSON +bsd-dist: bsd-dist@ucbvax.berkeley.edu + +# FORTUNE +fortune: fortune@ucbvax.berkeley.edu + +# TERMCAP +termcap: bigbug@ucbvax.berkeley.edu + +# BUG PERSON +ucb-fixes: bigbug@ucbvax.berkeley.edu +ucb-fixes-request: bigbug@ucbvax.berkeley.edu +bugs: bugs@ucbvax.berkeley.edu +# END OFFICIAL BUG ADDRESSES diff --git a/etc/crontab b/etc/crontab new file mode 100644 index 000000000000..f70ff21df68e --- /dev/null +++ b/etc/crontab @@ -0,0 +1,7 @@ +0,15,30,45 * * * * root /usr/libexec/atrun +#0 1 * * * daemon /usr/contrib/news/daily +#0 0 * * * uucp /etc/uucp.daily +#7 5,12,18 * * * uucp /etc/uucp.6hours +0 2 * * * root /bin/sh /etc/daily 2>&1 | tee /var/log/daily.out | mail -s "daily output" root +30 3 * * 6 root /bin/sh /etc/weekly 2>&1 | tee /var/log/weekly.out | mail -s "weekly output" root +30 5 1 * * root /bin/sh /etc/monthly 2>&1 | tee /var/log/monthly.out | mail -s "monthlyoutput" root diff --git a/etc/csh.cshrc b/etc/csh.cshrc new file mode 100644 index 000000000000..4a3bf3ff3e9c --- /dev/null +++ b/etc/csh.cshrc @@ -0,0 +1 @@ +# System-wide .cshrc file for csh(1). diff --git a/etc/csh.login b/etc/csh.login new file mode 100644 index 000000000000..0b573ff50daa --- /dev/null +++ b/etc/csh.login @@ -0,0 +1 @@ +# System-wide .login file for csh(1). diff --git a/etc/csh.logout b/etc/csh.logout new file mode 100644 index 000000000000..f8601c07d9c0 --- /dev/null +++ b/etc/csh.logout @@ -0,0 +1 @@ +# System-wide .logout file for csh(1). diff --git a/etc/daily b/etc/daily new file mode 100644 index 000000000000..0f459ac1a593 --- /dev/null +++ b/etc/daily @@ -0,0 +1,148 @@ +#!/bin/sh - +# +# @(#)daily 5.12 (Berkeley) 5/24/91 +# +PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local +host=`hostname -s` +echo "Subject: $host daily run output" +bak=/var/backups + +echo "" +echo "Removing scratch and junk files:" +if [ -d /tmp ]; then + cd /tmp && { + find . -type f -atime +3 -exec rm -f -- {} \; + find . ! -name . -type d -mtime +1 -exec rmdir -- {} \; \ + >/dev/null 2>&1; } +fi + +if [ -d /var/tmp ]; then + cd /var/tmp && { + find . ! -name . -atime +7 -exec rm -f -- {} \; + find . ! -name . -type d -mtime +1 -exec rmdir -- {} \; \ + >/dev/null 2>&1; } +fi + +if [ -d /scratch ]; then + cd /scratch && { + find . ! -name . -atime +1 -exec rm -f -- {} \; + find . ! -name . -type d -mtime +1 -exec rmdir -- {} \; \ + >/dev/null 2>&1; } +fi + +if [ -d /var/preserve ]; then + cd /var/preserve && { + find . ! -name . -mtime +7 -exec rm -f -- {} \; ; } +fi + +if [ -d /var/rwho ] ; then + cd /var/rwho && { + find . ! -name . -mtime +7 -exec rm -f -- {} \; ; } +fi + +cd /tmp +find / ! -fstype local -a -prune -o \ + \( -name '[#,]*' -o -name '.#*' -o -name a.out -o -name core \ + -o -name '*.CKP' -o -name '.emacs_[0-9]*' \) \ + -a -atime +3 -exec rm -f -- {} \; +msgs -c +if [ -f /etc/news.expire ]; then + /etc/news.expire +fi + +echo "" +echo "Purging accounting records:" +mv /var/account/acct.2 /var/account/acct.3 +mv /var/account/acct.1 /var/account/acct.2 +mv /var/account/acct.0 /var/account/acct.1 +cp /var/account/acct /var/account/acct.0 +sa -s > /dev/null + +echo "" +echo "Backup passwd and group files:" +if cmp -s $bak/master.passwd.bak /etc/master.passwd; then :; else + echo "$host passwd diffs:" + diff $bak/master.passwd.bak /etc/master.passwd + mv $bak/master.passwd.bak $bak/master.passwd.bak2 + cp -p /etc/master.passwd $bak/master.passwd.bak +fi +if cmp -s $bak/group.bak /etc/group; then :; else + mv $bak/group.bak $bak/group.bak2 + cp -p /etc/group $bak/group.bak +fi +if cmp -s $bak/aliases.bak /etc/aliases; then :; else + mv $bak/aliases.bak $bak/aliases.bak2 + cp -p /etc/aliases $bak/aliases.bak +fi +if [ -f /etc/Distfile ]; then + if cmp -s $bak/Distfile.bak /etc/Distfile; then :; else + mv $bak/Distfile.bak $bak/Distfile.bak2 + cp /etc/Distfile $bak/Distfile.bak + fi +fi + +echo "" +echo "Running calendar:" +calendar -a + +echo "" +echo "Rotating mail log:" +cd /var/log +rm -f maillog.7 +if [ -f maillog.6 ]; then mv -f maillog.6 maillog.7; fi +if [ -f maillog.5 ]; then mv -f maillog.5 maillog.6; fi +if [ -f maillog.4 ]; then mv -f maillog.4 maillog.5; fi +if [ -f maillog.3 ]; then mv -f maillog.3 maillog.4; fi +if [ -f maillog.2 ]; then mv -f maillog.2 maillog.3; fi +if [ -f maillog.1 ]; then mv -f maillog.1 maillog.2; fi +if [ -f maillog.0 ]; then mv -f maillog.0 maillog.1; fi +mv -f maillog maillog.0 +cp /dev/null maillog +chmod 644 maillog +kill -1 `cat /var/run/syslog.pid` +cd / + +if [ -d /var/spool/uucp -a -f /etc/uuclean.daily ]; then + echo "" + echo "Cleaning up UUCP:" + echo /etc/uuclean.daily | su daemon +fi + +echo "" +echo "" +echo "Checking subsystem status:" +echo "" +echo "disks:" +df -k +echo "" +dump W +echo "" + + +echo "" +echo "mail:" +mailq + +if [ -d /var/spool/uucp ]; then + echo "" + echo "uucp:" + uusnap +fi + +echo "" +echo "network:" +netstat -i +echo "" +ruptime + +echo "" +echo "Checking filesystems:" +fsck -n | grep -v '^\*\* Phase' + +echo "" +if [ -f /etc/Distfile ]; then + echo "Running rdist:" + rdist -f /etc/Distfile +fi + +sh /etc/security | mail -s "daily insecurity output" root diff --git a/etc/disktab b/etc/disktab new file mode 100644 index 000000000000..61a9c095880d --- /dev/null +++ b/etc/disktab @@ -0,0 +1,101 @@ +# Disk geometry and partition layout tables. +# Key: +# dt controller type +# ty type of disk (fixed, removeable, simulated) +# d[0-4] drive-type-dependent parameters +# ns #sectors/track +# nt #tracks/cylinder +# nc #cylinders/disk +# sc #sectors/cylinder, nc*nt default +# su #sectors/unit, sc*nc default +# se sector size, DEV_BSIZE default +# rm rpm, 3600 default +# sf supports bad144-style bad sector forwarding +# sk sector skew per track, default 0 +# cs sector skew per cylinder, default 0 +# hs headswitch time, default 0 +# ts one-cylinder seek time, default 0 +# il sector interleave (n:1), 1 default +# bs boot block size, default BBSIZE +# sb superblock size, default SBSIZE +# o[a-h] partition offsets in sectors +# p[a-h] partition sizes in sectors +# b[a-h] partition block sizes in bytes +# f[a-h] partition fragment sizes in bytes +# t[a-h] partition types (filesystem, swap, etc) +# +# All partition sizes reserve space for bad sector tables. +# (5 cylinders needed for maintenance + replacement sectors) +# +qp120at|Quantum Peripherals 120MB IDE:\ + :dt=ESDI:ty=winchester:se#512:nt#9:ns#32:nc#813:sf: \ + :pa#13824:oa#0:ta=4.2BSD:ba#4096:fa#512: \ + :pb#13824:ob#13824:tb=swap: \ + :pc#234144:oc#0: \ + :ph#206496:oh#27648:th=4.2BSD:bh#4096:fh#512: + +pan60|Panasonic Laptop's 60MB IDE:\ + :dt=ST506:ty=winchester:se#512:nt#13:ns#17:nc#565:\ + :pa#13260:oa#0:ta=4.2BSD:ba#4096:fa#512:\ + :pb#13260:ob#13260:tb=swap: \ + :pc#124865:oc#0: \ + :ph#97682:oh#26520:th=4.2BSD:bh#4096:fh#512: + +mk156|toshiba156|Toshiba MK156 156Mb:\ + :dt=SCSI:ty=winchester:se#512:nt#10:ns#35:nc#825:\ + :pa#15748:oa#0:ba#4096:fa#512:ta=4.2BSD:\ + :pb#15748:ob#15748:tb=swap:\ + :pc#288750:oc#0:\ + :ph#257250:oh#31500:bh#4096:fh#512:th=4.2BSD: + +cp3100|Connor Peripherals 100MB IDE:\ + :dt=ST506:ty=winchester:se#512:nt#8:ns#33:nc#766:sf: \ + :pa#12144:oa#0:ta=4.2BSD:ba#4096:fa#512: \ + :pb#12144:ob#12144:tb=swap: \ + :pc#202224:oc#0: \ + :ph#177936:oh#24288:th=4.2BSD:bh#4096:fh#512: + +floppy|floppy3|3in|3.5in High Density Floppy:\ + :ty=floppy:se#512:nt#2:rm#300:ns#18:nc#80:\ + :pa#2880:oa#0:ba#4096:fa#512:\ + :pb#2880:ob#0:\ + :pc#2880:oc#0: + +floppy5|5in|5.25in High Density Floppy:\ + :ty=floppy:se#512:nt#2:rm#300:ns#15:nc#80:\ + :pb#2400:ob#0:bb#4096:fb#512: + :pc#2400:oc#0:bc#4096:fc#512: + +maxtor4380|Maxtor XT4380E ESDI :\ + :dt=ESDI:ty=winchester:se#512:nt#15:ns#36:nc#1222:sf: \ + :pa#21600:oa#0:ta=4.2BSD:ba#4096:fa#512:\ + :pb#21600:ob#21600:tb=swap: \ + :pc#659880:oc#0: \ + :pd#216000:od#53200:td=4.2BSD:bd#4096:fd#512: \ + :ph#398520:oh#269200:th=4.2BSD:bh#4096:fh#512: + +miniscribe9380|compaq38|Miniscribe 9380 ESDI :\ + :ty=winchester:dt=ESDI:se#512:nt#15:ns#35:nc#1223:rm#3600:sf: \ + :pa#21000:oa#0:ba#8192:fa#1024:ta=4.2BSD: \ + :pb#42000:ob#21000:tb=swap: \ + :pc#642075:oc#0: \ + :pd#21000:od#63000:bd#8192:fd#1024:td=4.2BSD: \ + :ph#556500:oh#84000:bh#8192:fh#1024:th=4.2BSD: + +ida4|compaq88|Compaq IDA (4 drives) :\ + :ty=winchester:dt=IDA:se#512:nt#16:ns#63:nc#1644:rm#3600:\ + :pa#20160:oa#0:ba#8192:fa#1024:ta=4.2BSD: \ + :pb#80640:ob#20160:tb=swap: \ + :pc#1659168:oc#0: \ + :pd#201600:od#100800:bd#8192:fd#1024:td=4.2BSD: \ + :pe#20160:oe#1310400:be#8192:fe#1024:te=4.2BSD: \ + :ph#1008000:oh#302400:bh#8192:fh#1024:th=4.2BSD: \ + :pg#302400:og#1330560:bg#4096:fg#512:tg=4.2BSD: + +fuji513|Fujitsu M22XXXX: \ + :ty=winchester:dt=ESDI:se#512:nt#16:ns#63:nc#954:rm#3600:\ + :pa#20160:oa#82656:ba#4096:fa#512:ta=4.2BSD: \ + :pb#40320:ob#102816:tb=swap: \ + :pc#961632:oc#0: \ + :ph#656208:oh#143136:bh#4096:fh#512:th=4.2BSD: + diff --git a/etc/dm.conf b/etc/dm.conf new file mode 100644 index 000000000000..48c24de51f87 --- /dev/null +++ b/etc/dm.conf @@ -0,0 +1,19 @@ +# +# Game Control File +# @(#)dm.conf 5.5 (Berkeley) 4/12/89 +# + +# TTYNAME +# badtty /dev/tty19 # news +# badtty /dev/tty20 # news/mail + +# DAY OF WEEK START STOP +# time Monday 7 16 # 7am to 4pm +# time Tuesday 7 16 +# time Wednesday 7 16 +# time Thursday 7 16 +# time Friday 7 16 + +# GAME MAX LOAD MAX USERS PRIORITY +# default must be the last entry for the ``game'' keyword +game default 5 * * diff --git a/etc/etc.i386/MAKEDEV b/etc/etc.i386/MAKEDEV new file mode 100644 index 000000000000..00fc16288a1a --- /dev/null +++ b/etc/etc.i386/MAKEDEV @@ -0,0 +1,160 @@ +#!/bin/sh - +# +# Copyright (c) 1990 The Regents of the University of California. +# All rights reserved. +# +# Written and contributed by W. Jolitz 12/90 +# +# Redistribution and use in source and binary forms are permitted provided +# that: (1) source distributions retain this entire copyright notice and +# comment, and (2) distributions including binaries display the following +# acknowledgement: ``This product includes software developed by the +# University of California, Berkeley and its contributors'' in the +# documentation or other materials provided with the distribution and in +# all advertising materials mentioning features or use of this software. +# Neither the name of the University nor the names of its contributors may +# be used to endorse or promote products derived from this software without +# specific prior written permission. +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +# +# @(#)MAKEDEV 5.2 (Berkeley) 6/22/90 +# +# Device "make" file. Valid arguments: +# std standard devices +# local configuration specific devices +# +# Tapes: +# wt* QIC-interfaced (e.g. not SCSI) 3M cartridge tape +# +# Disks: +# wd* "winchester" disk drives (ST506,IDE,ESDI,RLL,...) +# fd* "floppy" disk drives (3 1/2", 5 1/4") +# as* "SCSI" disk/tape/CDROM drives +# +# Terminal ports: +# com* standard PC COM ports +# +# Pseudo terminals: +# pty* set of 16 master and slave pseudo terminals +# +# Printers: +# +# Call units: +# +# Special purpose devices: +# flog* kernel logging device +# + +PATH=/sbin:/bin/:/usr/bin +umask 77 +for i +do +case $i in + +std) + rm -f console drum mem kmdem null tty klog stdin stdout stderr + mknod console c 0 0 + mknod drum c 4 0 ; chmod 640 drum ; chgrp kmem drum + mknod kmem c 2 1 ; chmod 640 kmem ; chgrp kmem kmem + mknod mem c 2 0 ; chmod 640 mem ; chgrp kmem mem + mknod null c 2 2 ; chmod 666 null + mknod tty c 1 0 ; chmod 666 tty + mknod klog c 7 0 ; chmod 600 klog + mknod stdin c 53 0 ; chmod 666 stdin + mknod stdout c 53 1 ; chmod 666 stdout + mknod stderr c 53 2 ; chmod 666 stderr + rm -f fd/* + mkdir fd > /dev/null 2>&1 + (cd fd && eval `echo "" | awk ' BEGIN { \ + for (i = 0; i < 64; i++) \ + printf("mknod %d c 53 %d;", i, i)}'`) + chown -R bin.bin fd + chmod 555 fd + chmod 666 fd/* + ;; + +wt*) + umask 2 + mknod wt0 b 3 0 + mknod rwt0 c 10 0 + umask 77 + ;; + +fd*|wd*|as*) + umask 2 ; unit=`expr $i : '..\(.*\)'` + case $i in + fd*) name=fd; blk=2; chr=9;; + wd*) name=wd; blk=0; chr=3;; + as*) name=as; blk=4; chr=13;; + esac + rm -f $name$unit? r$name$unit? + case $unit in + 0|1) + mknod ${name}${unit}a b $blk `expr $unit '*' 8 + 0` + mknod ${name}${unit}b b $blk `expr $unit '*' 8 + 1` + mknod ${name}${unit}c b $blk `expr $unit '*' 8 + 2` + mknod ${name}${unit}d b $blk `expr $unit '*' 8 + 3` + mknod ${name}${unit}e b $blk `expr $unit '*' 8 + 4` + mknod ${name}${unit}f b $blk `expr $unit '*' 8 + 5` + mknod ${name}${unit}g b $blk `expr $unit '*' 8 + 6` + mknod ${name}${unit}h b $blk `expr $unit '*' 8 + 7` + mknod r${name}${unit}a c $chr `expr $unit '*' 8 + 0` + mknod r${name}${unit}b c $chr `expr $unit '*' 8 + 1` + mknod r${name}${unit}c c $chr `expr $unit '*' 8 + 2` + mknod r${name}${unit}d c $chr `expr $unit '*' 8 + 3` + mknod r${name}${unit}e c $chr `expr $unit '*' 8 + 4` + mknod r${name}${unit}f c $chr `expr $unit '*' 8 + 5` + mknod r${name}${unit}g c $chr `expr $unit '*' 8 + 6` + mknod r${name}${unit}h c $chr `expr $unit '*' 8 + 7` + chgrp operator ${name}${unit}[a-h] r${name}${unit}[a-h] + chmod 640 ${name}${unit}[a-h] r${name}${unit}[a-h] + ;; + *) + echo bad unit for disk in: $i + ;; + esac + umask 77 + ;; + +com*) + unit=`expr $i : 'com\(.*\)'` + rm -f com$unit + mknod com$unit c 8 $unit + ;; + +pty*) + class=`expr $i : 'pty\(.*\)'` + case $class in + 0) offset=0 name=p;; + 1) offset=16 name=q;; + 2) offset=32 name=r;; + 3) offset=48 name=s;; +# Note that telnetd, rlogind, and xterm (at least) only look at p-s. + 4) offset=64 name=t;; + *) echo bad unit for pty in: $i;; + esac + case $class in + 0|1|2|3|4) + umask 0 + eval `echo $offset $name | awk ' { b=$1; n=$2 } END { + for (i = 0; i < 16; i++) + printf("mknod tty%s%x c 5 %d; \ + mknod pty%s%x c 6 %d; ", \ + n, i, b+i, n, i, b+i); }'` + umask 77 + if [ $class = 1 ]; then + mv ttyqf ttyv0; mv ptyqf ptyv0 + fi + ;; + esac + ;; + +local) + umask 0 + sh MAKEDEV.local + ;; + +esac +done diff --git a/etc/etc.i386/disktab b/etc/etc.i386/disktab new file mode 100644 index 000000000000..61a9c095880d --- /dev/null +++ b/etc/etc.i386/disktab @@ -0,0 +1,101 @@ +# Disk geometry and partition layout tables. +# Key: +# dt controller type +# ty type of disk (fixed, removeable, simulated) +# d[0-4] drive-type-dependent parameters +# ns #sectors/track +# nt #tracks/cylinder +# nc #cylinders/disk +# sc #sectors/cylinder, nc*nt default +# su #sectors/unit, sc*nc default +# se sector size, DEV_BSIZE default +# rm rpm, 3600 default +# sf supports bad144-style bad sector forwarding +# sk sector skew per track, default 0 +# cs sector skew per cylinder, default 0 +# hs headswitch time, default 0 +# ts one-cylinder seek time, default 0 +# il sector interleave (n:1), 1 default +# bs boot block size, default BBSIZE +# sb superblock size, default SBSIZE +# o[a-h] partition offsets in sectors +# p[a-h] partition sizes in sectors +# b[a-h] partition block sizes in bytes +# f[a-h] partition fragment sizes in bytes +# t[a-h] partition types (filesystem, swap, etc) +# +# All partition sizes reserve space for bad sector tables. +# (5 cylinders needed for maintenance + replacement sectors) +# +qp120at|Quantum Peripherals 120MB IDE:\ + :dt=ESDI:ty=winchester:se#512:nt#9:ns#32:nc#813:sf: \ + :pa#13824:oa#0:ta=4.2BSD:ba#4096:fa#512: \ + :pb#13824:ob#13824:tb=swap: \ + :pc#234144:oc#0: \ + :ph#206496:oh#27648:th=4.2BSD:bh#4096:fh#512: + +pan60|Panasonic Laptop's 60MB IDE:\ + :dt=ST506:ty=winchester:se#512:nt#13:ns#17:nc#565:\ + :pa#13260:oa#0:ta=4.2BSD:ba#4096:fa#512:\ + :pb#13260:ob#13260:tb=swap: \ + :pc#124865:oc#0: \ + :ph#97682:oh#26520:th=4.2BSD:bh#4096:fh#512: + +mk156|toshiba156|Toshiba MK156 156Mb:\ + :dt=SCSI:ty=winchester:se#512:nt#10:ns#35:nc#825:\ + :pa#15748:oa#0:ba#4096:fa#512:ta=4.2BSD:\ + :pb#15748:ob#15748:tb=swap:\ + :pc#288750:oc#0:\ + :ph#257250:oh#31500:bh#4096:fh#512:th=4.2BSD: + +cp3100|Connor Peripherals 100MB IDE:\ + :dt=ST506:ty=winchester:se#512:nt#8:ns#33:nc#766:sf: \ + :pa#12144:oa#0:ta=4.2BSD:ba#4096:fa#512: \ + :pb#12144:ob#12144:tb=swap: \ + :pc#202224:oc#0: \ + :ph#177936:oh#24288:th=4.2BSD:bh#4096:fh#512: + +floppy|floppy3|3in|3.5in High Density Floppy:\ + :ty=floppy:se#512:nt#2:rm#300:ns#18:nc#80:\ + :pa#2880:oa#0:ba#4096:fa#512:\ + :pb#2880:ob#0:\ + :pc#2880:oc#0: + +floppy5|5in|5.25in High Density Floppy:\ + :ty=floppy:se#512:nt#2:rm#300:ns#15:nc#80:\ + :pb#2400:ob#0:bb#4096:fb#512: + :pc#2400:oc#0:bc#4096:fc#512: + +maxtor4380|Maxtor XT4380E ESDI :\ + :dt=ESDI:ty=winchester:se#512:nt#15:ns#36:nc#1222:sf: \ + :pa#21600:oa#0:ta=4.2BSD:ba#4096:fa#512:\ + :pb#21600:ob#21600:tb=swap: \ + :pc#659880:oc#0: \ + :pd#216000:od#53200:td=4.2BSD:bd#4096:fd#512: \ + :ph#398520:oh#269200:th=4.2BSD:bh#4096:fh#512: + +miniscribe9380|compaq38|Miniscribe 9380 ESDI :\ + :ty=winchester:dt=ESDI:se#512:nt#15:ns#35:nc#1223:rm#3600:sf: \ + :pa#21000:oa#0:ba#8192:fa#1024:ta=4.2BSD: \ + :pb#42000:ob#21000:tb=swap: \ + :pc#642075:oc#0: \ + :pd#21000:od#63000:bd#8192:fd#1024:td=4.2BSD: \ + :ph#556500:oh#84000:bh#8192:fh#1024:th=4.2BSD: + +ida4|compaq88|Compaq IDA (4 drives) :\ + :ty=winchester:dt=IDA:se#512:nt#16:ns#63:nc#1644:rm#3600:\ + :pa#20160:oa#0:ba#8192:fa#1024:ta=4.2BSD: \ + :pb#80640:ob#20160:tb=swap: \ + :pc#1659168:oc#0: \ + :pd#201600:od#100800:bd#8192:fd#1024:td=4.2BSD: \ + :pe#20160:oe#1310400:be#8192:fe#1024:te=4.2BSD: \ + :ph#1008000:oh#302400:bh#8192:fh#1024:th=4.2BSD: \ + :pg#302400:og#1330560:bg#4096:fg#512:tg=4.2BSD: + +fuji513|Fujitsu M22XXXX: \ + :ty=winchester:dt=ESDI:se#512:nt#16:ns#63:nc#954:rm#3600:\ + :pa#20160:oa#82656:ba#4096:fa#512:ta=4.2BSD: \ + :pb#40320:ob#102816:tb=swap: \ + :pc#961632:oc#0: \ + :ph#656208:oh#143136:bh#4096:fh#512:th=4.2BSD: + diff --git a/etc/etc.i386/fstab.wd b/etc/etc.i386/fstab.wd new file mode 100644 index 000000000000..95483135ee52 --- /dev/null +++ b/etc/etc.i386/fstab.wd @@ -0,0 +1,3 @@ +/dev/wd0a / ufs rw 1 1 +#/dev/wd0d /var ufs rw 1 2 +#/dev/wd0h /usr ufs rw 1 3 diff --git a/etc/ftpusers b/etc/ftpusers new file mode 100644 index 000000000000..d23c64ac3a57 --- /dev/null +++ b/etc/ftpusers @@ -0,0 +1,4 @@ +# list of users disallowed any ftp access. +# read by ftpd(8). +root +uucp diff --git a/etc/gettytab b/etc/gettytab new file mode 100644 index 000000000000..62f60bf0b300 --- /dev/null +++ b/etc/gettytab @@ -0,0 +1,143 @@ +# from: @(#)gettytab 5.14 (Berkeley) 3/27/91 +# +# Most of the table entries here are just copies of the old getty table, +# it is by no means certain, or even likely, that any of them are optimal +# for any purpose whatever. Nor is it likely that more than a couple are +# even correct. +# +# The default gettytab entry, used to set defaults for all other +# entries, and in cases where getty is called with no table name +# +default:\ + :ap:fd#1000:im=\r\n 386BSD (%h) (%t)\r\n\r\n:sp#1200: + +# +# Fixed speed entries +# +# The "std.NNN" names are known to the special case +# portselector code in getty, however they can +# be assigned to any table desired. +# The "NNN-baud" names are known to the special case +# autobaud code in getty, and likewise can +# be assigned to any table desired (hopefully the same speed). +# +a|std.110|110-baud:\ + :nd#1:cd#1:uc:sp#110: +b|std.134|134.5-baud:\ + :ep:nd#1:cd#2:ff#1:td#1:sp#134:ht:nl: +1|std.150|150-baud:\ + :ep:nd#1:cd#2:td#1:fd#1:sp#150:ht:nl:lm=\E\72\6\6\17login\72 : +c|std.300|300-baud:\ + :nd#1:cd#1:sp#300: +d|std.600|600-baud:\ + :nd#1:cd#1:sp#600: +f|std.1200|1200-baud:\ + :fd#1:sp#1200: +6|std.2400|2400-baud:\ + :sp#2400: +7|std.4800|4800-baud:\ + :sp#4800: +2|std.9600|9600-baud:\ + :sp#9600: +g|std.19200|19200-baud:\ + :sp#19200: + +# +# Dial in rotary tables, speed selection via 'break' +# +0|d300|Dial-300:\ + :nx=d1200:cd#2:sp#300: +d1200|Dial-1200:\ + :nx=d150:fd#1:sp#1200: +d150|Dial-150:\ + :nx=d110:lm@:tc=150-baud: +d110|Dial-110:\ + :nx=d300:tc=300-baud: + +# +# Fast dialup terminals, 2400/1200/300 rotary (can start either way) +# +D2400|d2400|Fast-Dial-2400:\ + :nx=D1200:tc=2400-baud: +3|D1200|Fast-Dial-1200:\ + :nx=D300:tc=1200-baud: +5|D300|Fast-Dial-300:\ + :nx=D2400:tc=300-baud: + +# +#telebit (19200) +# +t19200:\ + :nx=t2400:tc=19200-baud: +t2400:\ + :nx=t1200:tc=2400-baud: +t1200:\ + :nx=t19200:tc=1200-baud: + +# +#telebit (9600) +# +t9600:\ + :nx=t2400a:tc=19200-baud: +t2400a:\ + :nx=t1200a:tc=2400-baud: +t1200a:\ + :nx=t9600:tc=1200-baud: + +# +# Odd special case terminals +# +-|tty33|asr33|Pity the poor user of this beast:\ + :tc=110-baud: + +4|Console|Console Decwriter II:\ + :nd@:cd@:rw:tc=300-baud: + +e|Console-1200|Console Decwriter III:\ + :fd@:nd@:cd@:rw:tc=1200-baud: + +i|Interdata console:\ + :uc:sp#0: + +l|lsi chess terminal:\ + :sp#300: + +X|Xwindow|X window system:\ + :fd@:nd@:cd@:rw:sp#9600: + +P|Pc|Pc console:\ + :np:ap:sp#9600: + +# +# Wierdo special case for fast crt's with hardcopy devices +# +8|T9600|CRT with hardcopy:\ + :nx=T300:tc=9600-baud: +9|T300|CRT with hardcopy (300):\ + :nx=T9600:tc=300-baud: + +# +# Plugboard, and misc other terminals +# +plug-9600|Plugboard-9600:\ + :pf#1:tc=9600-baud: +p|P9600|Plugboard-9600-rotary:\ + :pf#1:nx=P300:tc=9600-baud: +q|P300|Plugboard-300:\ + :pf#1:nx=P1200:tc=300-baud: +r|P1200|Plugboard-1200:\ + :pf#1:nx=P9600:tc=1200-baud: + +# +# XXXX Port selector +# +s|DSW|Port Selector:\ + :ps:sp#2400: + +# +# Auto-baud speed detect entry for Micom 600. +# Special code in getty will switch this out +# to one of the NNN-baud entries. +# +A|Auto-baud:\ + :ab:sp#2400:f0#040: diff --git a/etc/group b/etc/group new file mode 100644 index 000000000000..c2d3ae7e983b --- /dev/null +++ b/etc/group @@ -0,0 +1,15 @@ +wheel:*:0:root,bill,lynne +daemon:*:1:daemon +kmem:*:2:root +sys:*:3:root +tty:*:4:root +operator:*:5:root +bin:*:7: +news:*:8: +games:*:13: +staff:*:20:root +guest:*:31:root +nobody:*:39: +ingres:*:74:ingres +dialer:*:117 +nogroup:*:32766: diff --git a/etc/hosts b/etc/hosts new file mode 100644 index 000000000000..29402c5849e9 --- /dev/null +++ b/etc/hosts @@ -0,0 +1,13 @@ +# +# Host Database +# This file should contain the addresses and aliases +# for local hosts that share this file. +# It is used only for "ifconfig" and other operations +# before the nameserver is started. +# +# +127.1 localhost localhost.my.domain +# +# Imaginary network. +0.2 myname.my.domain myname +0.3 myfriend.my.domain myfriend diff --git a/etc/hosts.equiv b/etc/hosts.equiv new file mode 100644 index 000000000000..f6efd09ac550 --- /dev/null +++ b/etc/hosts.equiv @@ -0,0 +1,2 @@ +localhost +my_very_good_friend.domain diff --git a/etc/hosts.lpd b/etc/hosts.lpd new file mode 100644 index 000000000000..1be6dadac28d --- /dev/null +++ b/etc/hosts.lpd @@ -0,0 +1 @@ +machine.domain diff --git a/etc/inetd.conf b/etc/inetd.conf new file mode 100644 index 000000000000..699f6420e23d --- /dev/null +++ b/etc/inetd.conf @@ -0,0 +1,34 @@ +# +# Internet server configuration database +# +# @(#)inetd.conf 5.4 (Berkeley) 6/30/90 +# +ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l +telnet stream tcp nowait root /usr/libexec/telnetd telnetd +shell stream tcp nowait root /usr/libexec/rshd rshd +login stream tcp nowait root /usr/libexec/rlogind rlogind +exec stream tcp nowait root /usr/libexec/rexecd rexecd +#uucpd stream tcp nowait root /usr/libexec/uucpd uucpd +#nntp stream tcp nowait usenet /usr/libexec/nntpd nntpd +finger stream tcp nowait nobody /usr/libexec/fingerd fingerd +#tftp dgram udp wait nobody /usr/libexec/tftpd tftpd +comsat dgram udp wait root /usr/libexec/comsat comsat +talk dgram udp wait root /usr/old/talkd talkd +ntalk dgram udp wait root /usr/libexec/ntalkd ntalkd +echo stream tcp nowait root internal +discard stream tcp nowait root internal +chargen stream tcp nowait root internal +daytime stream tcp nowait root internal +time stream tcp nowait root internal +echo dgram udp wait root internal +discard dgram udp wait root internal +chargen dgram udp wait root internal +daytime dgram udp wait root internal +time dgram udp wait root internal +# Kerberos authenticated services +klogin stream tcp nowait root /usr/libexec/rlogind rlogind -k +eklogin stream tcp nowait root /usr/libexec/rlogind rlogind -k -x +kshell stream tcp nowait root /usr/libexec/rshd rshd -k +# Services run ONLY on the Kerberos server +#krbupdate stream tcp nowait root /usr/libexec/registerd registerd +#kpasswd stream tcp nowait root /usr/libexec/kpasswdd kpasswdd diff --git a/etc/mail/aliases b/etc/mail/aliases new file mode 100644 index 000000000000..7f23c1d18b79 --- /dev/null +++ b/etc/mail/aliases @@ -0,0 +1,50 @@ +# +# @(#)aliases 5.3 (Berkeley) 5/24/90 +# +# Aliases in this file will NOT be expanded in the header from +# Mail, but WILL be visible over networks or from /bin/mail. +# +# >>>>>>>>>> The program "newaliases" must be run after +# >> NOTE >> this file is updated for any changes to +# >>>>>>>>>> show through to sendmail. +# + +# Basic system aliases -- these MUST be present +MAILER-DAEMON: postmaster +postmaster: root + +# General redirections for pseudo accounts +bin: root +daemon: root +games: root +ingres: root +nobody: root +system: root +toor: root +uucp: root + +# Well-known aliases +root: +manager: +dumper: +operator: + +# OFFICIAL CSRG/BUG ADDRESSES + +# FTP BUG ADDRESS +ftp-bugs: bigbug@ucbvax.berkeley.edu + +# DISTRIBUTION PERSON +bsd-dist: bsd-dist@ucbvax.berkeley.edu + +# FORTUNE +fortune: fortune@ucbvax.berkeley.edu + +# TERMCAP +termcap: bigbug@ucbvax.berkeley.edu + +# BUG PERSON +ucb-fixes: bigbug@ucbvax.berkeley.edu +ucb-fixes-request: bigbug@ucbvax.berkeley.edu +bugs: bugs@ucbvax.berkeley.edu +# END OFFICIAL BUG ADDRESSES diff --git a/etc/man.conf b/etc/man.conf new file mode 100644 index 000000000000..e7c5a994e813 --- /dev/null +++ b/etc/man.conf @@ -0,0 +1,34 @@ +# @(#)man.conf 5.4 (Berkeley) 6/30/90 + +# sheer, raging paranoia... +_version BSD.1 + +# whatis/apropos database +_whatdb /usr/share/man/whatis.db + +# subdirectories for paths ending in '/'; note order +_subdir cat1 cat8 cat6 cat2 cat3 cat4 cat5 cat7 cat3f + +# sections and their directories +# paths ending in '/' are the equivalent of entries specifying that directory +# with all of the subdirectories listed for the keyword _order. + +# default +_default /usr/share/man/ /usr/share/man/old/ /usr/contrib/man/ /usr/local/man/ + +# section directory +1 /usr/share/man/cat1 +2 /usr/share/man/cat2 +3 /usr/share/man/cat3 +3F /usr/share/man/cat3f +3f /usr/share/man/cat3f +4 /usr/share/man/cat4 +5 /usr/share/man/cat5 +6 /usr/share/man/cat6 +7 /usr/share/man/cat7 +8 /usr/share/man/cat8 + +contrib /usr/contrib/man/ +local /usr/local/man/ +new /usr/contrib/man/ +old /usr/share/man/old/ diff --git a/etc/master.passwd b/etc/master.passwd new file mode 100644 index 000000000000..d1e148a4f8f9 --- /dev/null +++ b/etc/master.passwd @@ -0,0 +1,14 @@ +root::0:10::0:0:Charlie &:/root:/bin/csh +toor::0:10::0:0:Bourne-again Superuser:/root: +daemon:*:1:31::0:0:The devil himself:/root: +operator:*:2:28::0:0:System &:/usr/guest/operator:/bin/csh +bin:*:3:7::0:0:Binaries Commands and Source,,,:/:/dev/null +games:*:7:13::0:0:Games pseudo-user:/usr/games: +uucp:*:66:1::0:0:UNIX-to-UNIX Copy:/var/spool/uucppublic:/usr/lib/uucp/uucico +nobody:*:32767:9999::0:0:Unprivileged user:/nonexistent:/dev/null +dmr:*:10:31::0:0:Dennis Ritchie:/usr/guest/dmr: +ken:*:11:31::0:0:& Thompson:/usr/guest/ken: +bill::12:10::0:0:& Jolitz:/usr/bill:/bin/csh +lynne::14:10::0:0:& Jolitz:/usr/lynne:/bin/csh +ingres:*:267:74::0:0:& Group:/usr/ingres:/bin/csh +falcon:*:32766:31::0:0:Prof. Steven &:/usr/games:/usr/games/wargames diff --git a/etc/monthly b/etc/monthly new file mode 100644 index 000000000000..e48ddd7033d3 --- /dev/null +++ b/etc/monthly @@ -0,0 +1,27 @@ +#!/bin/sh - +# +# @(#)monthly 5.5 (Berkeley) 6/17/91 +# + +host=`hostname -s` +echo "Subject: $host monthly run output" + +# echo "" +# echo "Doing login accounting:" +# ac -p | sort -nr +1 + +echo "" +echo -n "Rotating log files:" +#cd /var/log +for i in kerberos.log lpd-errs wtmp; do + echo -n " $i" + if [ -f $i.5 ]; then mv -f $i.5 $i.6; fi + if [ -f $i.4 ]; then mv -f $i.4 $i.5; fi + if [ -f $i.3 ]; then mv -f $i.3 $i.4; fi + if [ -f $i.2 ]; then mv -f $i.2 $i.3; fi + if [ -f $i.1 ]; then mv -f $i.1 $i.2; fi + if [ -f $i.0 ]; then mv -f $i.0 $i.1; fi + if [ -f $i ]; then mv -f $i $i.0; fi + >$i +done +echo "" diff --git a/etc/motd b/etc/motd new file mode 100644 index 000000000000..83f232b01ef7 --- /dev/null +++ b/etc/motd @@ -0,0 +1,4 @@ +386BSD 0.1.0 07/12/92 22:20 + +Would you like to play a game? + diff --git a/etc/mtree/BSD.root.dist b/etc/mtree/BSD.root.dist new file mode 100644 index 000000000000..f86ffade41c2 --- /dev/null +++ b/etc/mtree/BSD.root.dist @@ -0,0 +1,95 @@ +# fs: / +# by: bostic +# +# %W% (Berkeley) %G% + +# top-level files are owned by root.wheel +# (else too easy to get root by compromising these) + +/set owner=root group=wheel mode=0755 type=file + +sys type=link size=11 link=usr/src/sys +a type=dir +.. +b type=dir +.. + +dev type=dir + fd type=dir + .. +.. + +etc type=dir + disklabels type=dir + .. +# what is the following for? +/set nlink=1 + kerberosIV type=dir + .. + mtree type=dir + .. + namedb type=dir + .. + passwd mode=0644 + master.passwd mode=0600 + spwd.db mode=0600 + pwd.db mode=0644 + group mode=0644 + crontab mode=0644 + dumpdates group=operator mode=0664 + + # config files, writeable by root + /set mode=0644 type=file + daily + weekly + monthly + exports + fstab + hosts.equiv + hosts.lpd + inetd.conf + printcap + rc + rc.local + netstart mode=0755 + remote + security + sendmail.cf + sendmail.cw + syslog.conf + ttys + + # prototype files, not normally written by root + /set mode=0444 + ftpusers + shells + gettytab + named.boot + hosts + networks + protocols + services + localtime owner=bin group=bin + man.conf owner=bin group=bin + +.. + +mnt type=dir +.. +root type=dir +.. +stand type=dir +.. +tmp type=dir owner=bin group=bin mode=01777 +.. +usr type=dir +.. +var type=dir +.. + +# binary directories: +/set owner=bin group=bin mode=0755 +bin type=dir +.. +sbin type=dir +.. diff --git a/etc/mtree/BSD.usr.dist b/etc/mtree/BSD.usr.dist new file mode 100644 index 000000000000..63cd1756e2be --- /dev/null +++ b/etc/mtree/BSD.usr.dist @@ -0,0 +1,494 @@ +# fs: /usr +# by: bostic +# +# @(#)BSD.usr.dist 5.5 (Berkeley) 5/9/91 + +/set group=bin mode=0755 owner=bin type=file +bin type=dir owner=bin group=bin mode=0755 +.. +contrib type=dir owner=bin group=bin mode=0755 + X type=dir owner=bin group=bin mode=0755 + bin type=dir owner=bin group=bin mode=0755 + .. + include type=dir owner=bin group=bin mode=0755 + .. + man type=dir owner=bin group=bin mode=0755 + .. + .. + bin type=dir owner=bin group=bin mode=0755 + .. + lib type=dir owner=bin group=bin mode=0755 + emacs type=dir owner=bin group=bin mode=0755 + etc type=dir owner=bin group=bin mode=0755 + .. + info type=dir owner=bin group=bin mode=0755 + .. + lisp type=dir owner=bin group=bin mode=0755 + term type=dir owner=bin group=bin mode=0755 + .. + .. + lock type=dir owner=bin group=bin mode=0777 + .. + .. + .. + man type=dir owner=bin group=bin mode=0755 + cat1 type=dir owner=bin group=bin mode=0755 + .. + cat2 type=dir owner=bin group=bin mode=0755 + .. + cat3 type=dir owner=bin group=bin mode=0755 + .. + cat4 type=dir owner=bin group=bin mode=0755 + .. + cat5 type=dir owner=bin group=bin mode=0755 + .. + cat6 type=dir owner=bin group=bin mode=0755 + .. + cat7 type=dir owner=bin group=bin mode=0755 + .. + cat8 type=dir owner=bin group=bin mode=0755 + .. + .. + mh type=dir owner=bin group=bin mode=0755 + bin type=dir owner=bin group=bin mode=0755 + .. + include type=dir owner=bin group=bin mode=0755 + .. + lib type=dir owner=bin group=bin mode=0755 + .. + man type=dir owner=bin group=bin mode=0755 + .. + .. +.. + +/set group=bin mode=0700 owner=games type=file +games type=dir owner=bin mode=0755 + hide type=dir owner=games group=bin mode=0700 + .. +.. + +/set group=bin mode=0755 owner=bin type=file +include type=dir + X type=dir owner=bin group=bin mode=0755 + .. + +/set group=bin mode=0755 owner=bin type=file + X11 type=dir + bitmaps type=dir owner=bin group=bin mode=0755 + .. + .. + arpa type=dir owner=bin group=bin mode=0755 + .. + kerberosIV type=dir owner=bin group=bin mode=0755 + .. + pascal type=dir owner=bin group=bin mode=0755 + .. + protocols type=dir owner=bin group=bin mode=0755 + .. + rpc type=dir owner=bin group=bin mode=0755 + .. + xnscourier type=dir owner=bin group=bin mode=0755 + .. +.. + +/set group=bin mode=0755 owner=bin type=file +lib type=dir + +/set group=bin mode=0755 owner=bin type=file + uucp type=dir owner=uucp group=daemon mode=0755 + .. +.. + +/set group=bin mode=0755 owner=bin type=file +libdata type=dir + adb type=dir owner=bin group=bin mode=0755 + .. + +/set group=bin mode=0755 owner=bin type=file + learn type=dir + C type=dir owner=bin mode=0755 + .. + bin type=dir owner=bin mode=0755 + .. + editor type=dir owner=bin mode=0755 + .. + eqn type=dir owner=bin mode=0755 + .. + files type=dir owner=bin mode=0755 + .. + macros type=dir owner=bin mode=0755 + .. + morefiles type=dir owner=bin mode=0755 + .. + .. + lint type=dir owner=bin mode=0755 + .. + pascal type=dir owner=bin mode=0755 + .. + term type=dir owner=bin mode=0755 + .. + troff_font type=dir owner=bin mode=0755 + .. +.. + +/set group=bin mode=0755 owner=bin type=file +libexec type=dir + lpr type=dir owner=bin group=bin mode=0755 + .. + pascal type=dir owner=bin group=bin mode=0755 + .. + plot type=dir owner=bin group=bin mode=0755 + .. +.. +local type=dir owner=bin group=bin mode=0755 + bin type=dir owner=bin group=bin mode=0755 + .. + man type=dir owner=bin group=bin mode=0755 + cat1 type=dir owner=bin group=bin mode=0755 + .. + cat2 type=dir owner=bin group=bin mode=0755 + .. + cat3 type=dir owner=bin group=bin mode=0755 + .. + cat4 type=dir owner=bin group=bin mode=0755 + .. + cat5 type=dir owner=bin group=bin mode=0755 + .. + cat6 type=dir owner=bin group=bin mode=0755 + .. + cat7 type=dir owner=bin group=bin mode=0755 + .. + cat8 type=dir owner=bin group=bin mode=0755 + .. + .. +.. +obj type=dir owner=bin group=bin mode=0755 +.. +old type=dir owner=bin group=bin mode=0755 +.. +sbin type=dir owner=bin group=bin mode=0755 +.. + +/set group=bin mode=0755 owner=bin type=file +share type=dir + calendar type=dir owner=bin group=bin mode=0755 + .. + +/set group=bin mode=0755 owner=bin type=file + dict type=dir + papers type=dir owner=bin group=bin mode=0755 + .. + special type=dir owner=bin group=bin mode=0755 + .. + .. + doc type=dir owner=bin group=bin mode=0755 + ps1 type=dir owner=bin group=bin mode=0755 + 01.Clang type=dir owner=bin group=bin mode=0755 + .. + 02.f77 type=dir owner=bin group=bin mode=0755 + .. + 03.f77io type=dir owner=bin group=bin mode=0755 + .. + 04.pascal type=dir owner=bin group=bin mode=0755 + .. + 05.as type=dir owner=bin group=bin mode=0755 + .. + 06.sysman type=dir owner=bin group=bin mode=0755 + .. + 07.ipctut type=dir owner=bin group=bin mode=0755 + .. + 08.ipc type=dir owner=bin group=bin mode=0755 + .. + 09.lint type=dir owner=bin group=bin mode=0755 + .. + 10.adb type=dir owner=bin group=bin mode=0755 + .. + 11.dbx type=dir owner=bin group=bin mode=0755 + .. + 12.make type=dir owner=bin group=bin mode=0755 + .. + 13.rcs type=dir owner=bin group=bin mode=0755 + .. + 14.sccs type=dir owner=bin group=bin mode=0755 + .. + 15.yacc type=dir owner=bin group=bin mode=0755 + .. + 16.lex type=dir owner=bin group=bin mode=0755 + .. + 17.m4 type=dir owner=bin group=bin mode=0755 + .. + 18.curses type=dir owner=bin group=bin mode=0755 + .. + .. + ps2 type=dir owner=bin group=bin mode=0755 + 01.cacm type=dir owner=bin group=bin mode=0755 + .. + 02.summary type=dir owner=bin group=bin mode=0755 + .. + 03.uprog type=dir owner=bin group=bin mode=0755 + .. + 04.implement type=dir owner=bin group=bin mode=0755 + .. + 05.iosys type=dir owner=bin group=bin mode=0755 + .. + 07.fp type=dir owner=bin group=bin mode=0755 + .. + .. + smm type=dir owner=bin group=bin mode=0755 + 01.setup type=dir owner=bin group=bin mode=0755 + .. + 02.config type=dir owner=bin group=bin mode=0755 + .. + 03.kdebug type=dir owner=bin group=bin mode=0755 + .. + 04.quotas type=dir owner=bin group=bin mode=0755 + .. + 05.fsck type=dir owner=bin group=bin mode=0755 + .. + 06.lpd type=dir owner=bin group=bin mode=0755 + .. + 07.sendmailop type=dir owner=bin group=bin mode=0755 + .. + 08.timedop type=dir owner=bin group=bin mode=0755 + .. + 09.uucpimpl type=dir owner=bin group=bin mode=0755 + .. + 10.newsop type=dir owner=bin group=bin mode=0755 + .. + 11.named type=dir owner=bin group=bin mode=0755 + .. + 12.uchanges type=dir owner=bin group=bin mode=0755 + .. + 13.kchanges type=dir owner=bin group=bin mode=0755 + .. + 14.fastfs type=dir owner=bin group=bin mode=0755 + .. + 15.net type=dir owner=bin group=bin mode=0755 + .. + 16.sendmail type=dir owner=bin group=bin mode=0755 + .. + 17.security type=dir owner=bin group=bin mode=0755 + .. + 18.password type=dir owner=bin group=bin mode=0755 + .. + 19.porttour type=dir owner=bin group=bin mode=0755 + .. + 20.termdesc type=dir owner=bin group=bin mode=0755 + .. + 21.uucpnet type=dir owner=bin group=bin mode=0755 + .. + 22.timed type=dir owner=bin group=bin mode=0755 + .. + .. + usd type=dir owner=bin group=bin mode=0755 + 01.begin type=dir owner=bin group=bin mode=0755 + .. + 02.learn type=dir owner=bin group=bin mode=0755 + .. + 03.shell type=dir owner=bin group=bin mode=0755 + .. + 04.csh type=dir owner=bin group=bin mode=0755 + .. + 05.dc type=dir owner=bin group=bin mode=0755 + .. + 06.bc type=dir owner=bin group=bin mode=0755 + .. + 07.Mail type=dir owner=bin group=bin mode=0755 + .. + 08.mh type=dir owner=bin group=bin mode=0755 + .. + 09.newsread type=dir owner=bin group=bin mode=0755 + .. + 10.etiq type=dir owner=bin group=bin mode=0755 + .. + 11.notes type=dir owner=bin group=bin mode=0755 + .. + 12.edtut type=dir owner=bin group=bin mode=0755 + .. + 13.edadv type=dir owner=bin group=bin mode=0755 + .. + 14.edit type=dir owner=bin group=bin mode=0755 + .. + 15.vi type=dir owner=bin group=bin mode=0755 + .. + 16.ex type=dir owner=bin group=bin mode=0755 + .. + 17.jove type=dir owner=bin group=bin mode=0755 + .. + 18.sed type=dir owner=bin group=bin mode=0755 + .. + 19.awk type=dir owner=bin group=bin mode=0755 + .. + 20.msmacros type=dir owner=bin group=bin mode=0755 + .. + 21.msdiffs type=dir owner=bin group=bin mode=0755 + .. + 22.memacros type=dir owner=bin group=bin mode=0755 + .. + 23.meref type=dir owner=bin group=bin mode=0755 + .. + 24.troff type=dir owner=bin group=bin mode=0755 + .. + 25.trofftut type=dir owner=bin group=bin mode=0755 + .. + 26.eqn type=dir owner=bin group=bin mode=0755 + .. + 27.eqnguide type=dir owner=bin group=bin mode=0755 + .. + 28.tbl type=dir owner=bin group=bin mode=0755 + .. + 29.refer type=dir owner=bin group=bin mode=0755 + .. + 30.invert type=dir owner=bin group=bin mode=0755 + .. + 31.bib type=dir owner=bin group=bin mode=0755 + .. + 32.diction type=dir owner=bin group=bin mode=0755 + .. + 33.rogue type=dir owner=bin group=bin mode=0755 + .. + 34.trek type=dir owner=bin group=bin mode=0755 + .. + .. + .. + +/set group=bin mode=0755 owner=games type=file + games type=dir owner=bin + atc type=dir owner=games group=bin mode=0755 + .. + ching type=dir owner=games group=bin mode=0755 + .. + fortune type=dir owner=games group=bin mode=0755 + .. + larn type=dir owner=games group=bin mode=0755 + .. + quiz.db type=dir owner=games group=bin mode=0755 + .. + .. + +/set group=bin mode=0755 owner=bin type=file + man type=dir + cat.old type=dir owner=bin group=bin mode=0755 + .. + cat1 type=dir owner=bin group=bin mode=0755 + .. + cat2 type=dir owner=bin group=bin mode=0755 + .. + cat3 type=dir owner=bin group=bin mode=0755 + .. + cat3f type=dir owner=bin group=bin mode=0755 + .. + +/set group=bin mode=0755 owner=bin type=file + cat4 type=dir + tahoe type=dir owner=bin group=bin mode=0755 + .. + vax type=dir owner=bin group=bin mode=0755 + .. + hp300 type=dir owner=bin group=bin mode=0755 + .. + .. + cat5 type=dir owner=bin group=bin mode=0755 + .. + +/set group=bin mode=0755 owner=bin type=file + cat6 type=dir + tahoe type=dir owner=bin group=bin mode=0755 + .. + vax type=dir owner=bin group=bin mode=0755 + .. + .. + cat7 type=dir owner=bin group=bin mode=0755 + .. + +/set group=bin mode=0755 owner=bin type=file + cat8 type=dir + tahoe type=dir owner=bin group=bin mode=0755 + .. + vax type=dir owner=bin group=bin mode=0755 + .. + hp300 type=dir owner=bin group=bin mode=0755 + .. + .. + old type=dir owner=bin group=bin mode=0755 + cat1 type=dir owner=bin group=bin mode=0755 + .. + cat2 type=dir owner=bin group=bin mode=0755 + .. + cat3 type=dir owner=bin group=bin mode=0755 + .. + cat4 type=dir owner=bin group=bin mode=0755 + .. + cat5 type=dir owner=bin group=bin mode=0755 + .. + cat6 type=dir owner=bin group=bin mode=0755 + .. + cat7 type=dir owner=bin group=bin mode=0755 + .. + cat8 type=dir owner=bin group=bin mode=0755 + .. + .. + .. + me type=dir owner=bin group=bin mode=0755 + .. + misc type=dir owner=bin group=bin mode=0755 + .. + mk type=dir owner=bin group=bin mode=0755 + .. + ms type=dir owner=bin group=bin mode=0755 + .. + skel type=dir owner=bin group=bin mode=0755 + .. + tabset type=dir owner=bin group=bin mode=0755 + .. + tmac type=dir owner=bin group=bin mode=0755 + .. + zoneinfo type=dir owner=bin group=bin mode=0755 + Australia type=dir owner=bin group=bin mode=0555 + .. + Brazil type=dir owner=bin group=bin mode=0555 + .. + Canada type=dir owner=bin group=bin mode=0555 + .. + Chile type=dir owner=bin group=bin mode=0555 + .. + Mexico type=dir owner=bin group=bin mode=0555 + .. + SystemV type=dir owner=bin group=bin mode=0555 + .. + US type=dir owner=bin group=bin mode=0555 + .. + .. +.. +src type=dir owner=bin group=bin mode=0755 + bin type=dir owner=bin group=bin mode=0755 + .. + contrib type=dir owner=bin group=bin mode=0755 + .. + etc type=dir owner=bin group=bin mode=0755 + .. + games type=dir owner=bin group=bin mode=0755 + .. + include type=dir owner=bin group=bin mode=0755 + .. + kerberosIV type=dir owner=bin group=bin mode=0755 + .. + lib type=dir owner=bin group=bin mode=0755 + .. + libexec type=dir owner=bin group=bin mode=0755 + .. + old type=dir owner=bin group=bin mode=0755 + .. + pgrm type=dir owner=bin group=bin mode=0755 + .. + sbin type=dir owner=bin group=bin mode=0755 + .. + share type=dir owner=bin group=bin mode=0755 + .. + sys type=dir owner=bin group=sys mode=0755 + .. + usr.bin type=dir owner=bin group=bin mode=0755 + .. + usr.sbin type=dir owner=bin group=bin mode=0755 + .. +.. diff --git a/etc/mtree/BSD.var.dist b/etc/mtree/BSD.var.dist new file mode 100644 index 000000000000..a77b5c1706d7 --- /dev/null +++ b/etc/mtree/BSD.var.dist @@ -0,0 +1,72 @@ +# fs: /var +# by: bostic +# +# @(#)BSD.var.dist 5.3 (Berkeley) 5/9/91 + +/set group=bin mode=0755 owner=bin type=file +account type=dir owner=bin group=bin mode=0755 +.. + +/set group=bin mode=0755 owner=bin type=file +at type=dir + past type=dir owner=bin group=bin mode=0755 + .. +.. +backups type=dir owner=bin group=bin mode=0755 +.. +db type=dir owner=bin group=bin mode=0755 +.. + +/set group=bin mode=0755 owner=games type=file +games type=dir + hackdir type=dir owner=games group=bin mode=0755 + .. + larn type=dir owner=games group=bin mode=0755 + .. + phantasia type=dir owner=games group=bin mode=0755 + .. +.. +log type=dir owner=bin group=bin mode=0755 +.. +mail type=dir owner=bin group=bin mode=0755 +.. +msgs type=dir owner=bin group=bin mode=0755 +.. +preserve type=dir owner=bin group=bin mode=0755 +.. +quotas type=dir owner=bin group=bin mode=0755 +.. +run type=dir owner=bin group=bin mode=0755 +.. +rwho type=dir owner=bin group=bin mode=0755 +.. + +/set group=bin mode=0755 owner=bin type=file +spool type=dir mode=0755 + +/set group=bin mode=0755 owner=bin type=file + ftp type=dir mode=0755 + bin type=dir owner=bin group=bin mode=0755 + .. + hidden type=dir owner=bin group=bin mode=0111 + .. + pub type=dir owner=bin group=bin mode=0755 + .. + .. + lpd type=dir owner=bin group=bin mode=0755 + .. + mqueue type=dir owner=root group=bin mode=0755 + .. + news type=dir owner=bin group=bin mode=0755 + .. + output type=dir owner=bin group=bin mode=0755 + .. + secretmail type=dir owner=root group=bin mode=0755 + .. + uucp type=dir owner=uucp group=daemon mode=0755 + .. + uucppublic type=dir owner=uucp group=daemon mode=01777 + .. +.. +tmp type=dir owner=bin group=bin mode=01777 +.. diff --git a/etc/namedb/localhost.rev b/etc/namedb/localhost.rev new file mode 100644 index 000000000000..d6e59658d28b --- /dev/null +++ b/etc/namedb/localhost.rev @@ -0,0 +1,10 @@ +; @(#)localhost.rev 5.1 (Berkeley) 6/30/90 + +@ IN SOA ucbvax.Berkeley.EDU. rwh.ucbvax.Berkeley.EDU. ( + 1.4 ; Serial + 3600 ; Refresh + 300 ; Retry + 3600000 ; Expire + 3600 ) ; Minimum + IN NS ucbvax.Berkeley.EDU. +1 IN PTR localhost.Berkeley.EDU. diff --git a/etc/namedb/named.boot b/etc/namedb/named.boot new file mode 100644 index 000000000000..93db30859e22 --- /dev/null +++ b/etc/namedb/named.boot @@ -0,0 +1,21 @@ +; @(#)named.boot 5.1 (Berkeley) 6/30/90 + +; boot file for secondary name server +; Note that there should be one primary entry for each SOA record. + +sortlist 128.3.0.0 + +directory /etc/namedb + +; type domain source host/file backup file + +cache . root.cache +primary 0.0.127.IN-ADDR.ARPA localhost.rev + +; example secondary server config: +; secondary Berkeley.EDU 128.32.130.11 128.32.133.1 ucbhosts.bak +; secondary 32.128.IN-ADDR.ARPA 128.32.130.11 128.32.133.1 ucbhosts.rev.bak + +; example primary server config: +; primary Berkeley.EDU ucbhosts +; primary 32.128.IN-ADDR.ARPA ucbhosts.rev diff --git a/etc/namedb/root.cache b/etc/namedb/root.cache new file mode 100644 index 000000000000..d24fa4549c42 --- /dev/null +++ b/etc/namedb/root.cache @@ -0,0 +1,22 @@ +; @(#)root.cache 5.1 (Berkeley) 6/30/90 + +; Initial cache data for root domain servers. +. IN NS NS.NIC.DDN.MIL. + IN NS A.ISI.EDU. + IN NS AOS.BRL.MIL. + IN NS C.NYSER.NET. + IN NS GUNTER-ADAM.AF.MIL. + IN NS NS.NASA.GOV. + IN NS TERP.UMD.EDU. + +; Prep the cache (hotwire the addresses). Order does not matter. +NS.NIC.DDN.MIL IN A 192.67.67.53 +A.ISI.EDU IN A 26.3.0.103 + IN A 128.9.0.107 +AOS.BRL.MIL IN A 128.20.1.2 + IN A 192.5.25.82 +C.NYSER.NET. IN A 192.33.4.12 +GUNTER-ADAM.AF.MIL. IN A 26.1.0.13 +NS.NASA.GOV. IN A 128.102.16.10 + IN A 192.52.195.10 +TERP.UMD.EDU. IN A 128.8.10.90 diff --git a/etc/netstart b/etc/netstart new file mode 100755 index 000000000000..744e5f859042 --- /dev/null +++ b/etc/netstart @@ -0,0 +1,29 @@ +#!/bin/sh - +# +# @(#)netstart 5.9 (Berkeley) 3/30/91 + +routedflags=-q +timedflags=YES +rwhod=NO + +# myname is my symbolic name +# my-netmask is specified in /etc/networks +# +hostname=myname.my.domain +hostname $hostname + +ifconfig imp0 inet $hostname +ifconfig ace0 inet $hostname netmask my-netmask +ifconfig ex0 inet $hostname netmask my-netmask +ifconfig we0 inet $hostname netmask my-netmask +ifconfig ne0 inet $hostname netmask my-netmask + +# for en ethernet interface, load microcode before ifconfig +# /etc/enpload /dev/enp0ram /etc/enpcode > /dev/console 2>&1 +ifconfig en0 inet $hostname netmask my-netmask + +# set the address for the loopback interface +ifconfig lo0 inet localhost + +# use loopback, not the wire +route add $hostname localhost diff --git a/etc/networks b/etc/networks new file mode 100644 index 000000000000..71aeb5b05a53 --- /dev/null +++ b/etc/networks @@ -0,0 +1,16 @@ +# @(#)networks 5.1 (Berkeley) 6/30/90 +# +# Your Local Networks Database +# +your-net 127 # your comment +your-netmask 255.255.255 # subnet mask for your-net + +# +# Your subnets +# +subnet1 127.0.1 alias1 # comment 1 +subnet2 127.0.2 alias2 # comment 2 + +# +# Internet networks (from nic.ddn.mil) +# diff --git a/etc/phones b/etc/phones new file mode 100644 index 000000000000..941b0edc15fb --- /dev/null +++ b/etc/phones @@ -0,0 +1,7 @@ +# @(#)phones 5.2 (Berkeley) 6/30/90 +# +# phones -- remote host phone number data base +# see tip(1), phones(5) + +system1 9=3156427750 +system2 9148841241 diff --git a/etc/printcap b/etc/printcap new file mode 100644 index 000000000000..8216698a1ffd --- /dev/null +++ b/etc/printcap @@ -0,0 +1,4 @@ +# @(#)printcap 5.3 (Berkeley) 6/30/90 + +lp|local line printer:\ + :lp=/dev/lp:sd=/var/spool/lpd:lf=/var/log/lpd-errs: diff --git a/etc/protocols b/etc/protocols new file mode 100644 index 000000000000..8db17cf5d585 --- /dev/null +++ b/etc/protocols @@ -0,0 +1,15 @@ +# +# Internet (IP) protocols +# +# @(#)protocols 5.1 (Berkeley) 4/17/89 +# +ip 0 IP # internet protocol, pseudo protocol number +icmp 1 ICMP # internet control message protocol +ggp 3 GGP # gateway-gateway protocol +tcp 6 TCP # transmission control protocol +egp 8 EGP # exterior gateway protocol +pup 12 PUP # PARC universal packet protocol +udp 17 UDP # user datagram protocol +hmp 20 HMP # host monitoring protocol +xns-idp 22 XNS-IDP # Xerox NS IDP +rdp 27 RDP # "reliable datagram" protocol diff --git a/etc/rc b/etc/rc new file mode 100644 index 000000000000..de25fd72300b --- /dev/null +++ b/etc/rc @@ -0,0 +1,174 @@ +# @(#)rc 5.27 (Berkeley) 6/5/91 + +# System startup script run by init on autoboot +# or after single-user. +# Output and error are redirected to console by init, +# and the console is the controlling terminal. + +stty status '^T' +# yellow characters with blue background +echo -n "" + +# Set shell to ignore SIGINT (2), but not children; +# shell catches SIGQUIT (3) and returns to single user after fsck. +trap : 2 +trap : 3 # shouldn't be needed + +HOME=/; export HOME +PATH=/sbin:/bin:/usr/sbin:/usr/bin +export PATH + +if [ -r /fastboot ] +then + echo Fast boot ... skipping disk checks +elif [ $1x = autobootx ] +then + echo Automatic reboot in progress... + fsck -p + case $? in + 0) + ;; + 2) + exit 1 + ;; + 4) + reboot + echo "reboot failed... help!" + exit 1 + ;; + 8) + echo "Automatic file system check failed... help!" + exit 1 + ;; + 12) + echo "Reboot interrupted" + exit 1 + ;; + 130) + # interrupt before catcher installed + exit 1 + ;; + *) + echo "Unknown error in reboot" + exit 1 + ;; + esac +fi + +trap "echo 'Reboot interrupted'; exit 1" 3 + +swapon -a + +umount -a >/dev/null 2>&1 +mount -a -t nonfs +rm -f /fastboot # XXX (root now writeable) + +# set hostname, turn on network +echo 'starting network' +. /etc/netstart + +mount -a -t nfs >/dev/null 2>&1 & # XXX shouldn't need background + +# clean up left-over files +rm -f /etc/nologin +rm -f /var/spool/uucp/LCK.* +rm -f /var/spool/uucp/STST/* +(cd /var/run && { rm -rf -- *; cp /dev/null utmp; chmod 644 utmp; }) + +echo -n 'starting system logger' +rm -f /dev/log +syslogd + +# $timedflags is imported from /etc/netstart; +# if $timedflags == NO, timed isn't run. +if [ X${timedflags} != X"NO" ]; then + echo -n ', time daemon'; timed $timedflags +fi +echo '.' + +# /var/crash should be a directory or a symbolic link +# to the crash directory if core dumps are to be saved. +if [ -d /var/crash ]; then + echo checking for core dump... + savecore /var/crash +fi + +# echo -n 'checking quotas:' +#quotacheck -a +# echo ' done.' +#quotaon -a + +# build ps databases +kvm_mkdb /386bsd +dev_mkdb + +chmod 666 /dev/tty[pqrs]* + +# check the password temp/lock file +if [ -f /etc/ptmp ] +then + logger -s -p auth.err \ + 'password file may be incorrect -- /etc/ptmp exists' +fi + +echo preserving editor files +(cd /var/tmp && /usr/libexec/elvispreserve "-the system rebooted" elvis* && + rm -f elvis[0-9a-f][0-9a-f][0-9a-f][0-9a-f]* \ + elvis_[0-9a-f][0-9a-f][0-9a-f][0-9a-f]*) + +echo clearing /tmp + +# prune quickly with one rm, then use find to clean up /tmp/[lq]* +# (not needed with mfs /tmp, but doesn't hurt there...) +(cd /tmp && rm -rf [a-km-pr-zA-Z]* && + find . ! -name . ! -name lost+found ! -name quotas -exec rm -rf -- {} \;) + +# echo 'turning on accounting'; accton /var/account/acct + +echo -n standard daemons: +echo -n ' update'; update +echo -n ' crond'; /usr/libexec/crond +echo '.' + +echo -n starting network daemons: + +# $gated and $routedflags are imported from /etc/netstart. +# If $gated == YES, gated is used; otherwise routed. +# If $routedflags == NO, routed isn't run. +if [ X${gated} = X"YES" -a -r /etc/gated.conf ]; then + echo -n ' gated'; gated $gatedflags +elif [ X${routedflags} != X"NO" ]; then + echo -n ' routed'; routed $routedflags +fi + +if [ X${name_server} = X"YES" -a -r /etc/named.boot ]; then + echo -n ' named'; named +fi + +# $rwhod is imported from /etc/netstart; +# if $rwhod is set to something other than NO, rwhod is run. +if [ ${rwhod-NO} != "NO" ]; then + echo -n ' rwhod'; rwhod +fi + +echo -n ' printer'; lpd + + +if [ X${nfs_server} = X"YES" -a -r /etc/exports ]; then + echo -n ' portmap'; portmap + echo -n ' mountd'; mountd + echo -n ' nfsd'; nfsd -u 0,0,4 -t 0,0 + echo -n ' nfsiod'; nfsiod 4 +fi + +echo -n ' sendmail'; sendmail -bd -q30m +echo -n ' inetd'; inetd +echo '.' + +sh /etc/rc.local + +date + +# reset to normal (no colors) +echo -n "" +exit 0 diff --git a/etc/rc.local b/etc/rc.local new file mode 100644 index 000000000000..d76e9f13a14e --- /dev/null +++ b/etc/rc.local @@ -0,0 +1,23 @@ +# +# site-specific startup actions, daemons +# +# @(#)rc.local 5.4 (Berkeley) 12/14/90 +# + +T=/tmp/_motd +rm -f $T +strings /386bsd | grep version: | sed 's/version: /386BSD 0.1./' > $T +echo "" >> $T +sed '1,/^$/d' < /etc/motd >> $T +cp $T /etc/motd +chmod 666 /etc/motd +rm -f $T + +echo -n 'starting local daemons:' + +# Kerberos runs ONLY on the Kerberos server machine +if [ X${kerberos_server} = X"YES" ]; then + echo -n ' kerberos'; kerberos >> /var/log/kerberos.log & +fi + +echo '.' diff --git a/etc/remote b/etc/remote new file mode 100644 index 000000000000..45f328851026 --- /dev/null +++ b/etc/remote @@ -0,0 +1,40 @@ +# @(#)remote 5.2 (Berkeley) 6/30/90 +# +# remote -- remote host description file +# see tip(1), remote(5) +# +# dv device to use for the tty +# el EOL marks (default is NULL) +# du make a call flag (dial up) +# pn phone numbers (@ =>'s search phones file; possibly taken from +# PHONES environment variable) +# at ACU type +# ie input EOF marks (default is NULL) +# oe output EOF string (default is NULL) +# cu call unit (default is dv) +# br baud rate (defaults to 300) +# fs frame size (default is BUFSIZ) -- used in buffering writes on +# receive operations +# tc to continue a capability + +# UNIX system definitions +unix1200|1200 Baud dial-out to another UNIX system:\ + :el=^U^C^R^O^D^S^Q:ie=%$:oe=^D:tc=dial1200: +unix300|300 Baud dial-out to another UNIX system:\ + :el=^U^C^R^O^D^S^Q:ie=%$:oe=^D:tc=dial300: + +# General dialer definitions used below +# +# COURIER switch settings: +# switch: 1 2 3 4 5 6 7 8 9 10 +# setting: D U D U D D U D U U +# Rackmount: U U D U D U D D U D +# +dial2400|2400 Baud Hayes attributes:\ + :dv=/dev/tty19:br#2400:cu=/dev/tty19:at=hayes:du: +dial1200|1200 Baud Hayes attributes:\ + :dv=/dev/tty19:br#1200:cu=/dev/tty19:at=hayes:du: + +# Hardwired line +com1c|com1:dv=/dev/com1:br#9600: +com1b:dv=/dev/com1:br#2400: diff --git a/etc/root/dot.cshrc b/etc/root/dot.cshrc new file mode 100644 index 000000000000..7e273b0d6e11 --- /dev/null +++ b/etc/root/dot.cshrc @@ -0,0 +1,36 @@ +alias mail Mail +set history=1000 +set path=(/sbin /usr/sbin /bin /usr/bin /usr/local /usr/hosts /usr/contrib .) + +# directory stuff: cdpath/cd/back +set cdpath=(/sys /usr/src/{bin,sbin,usr.{bin,sbin},pgrm,lib,libexec,share,contrib,local,devel,games,old,}) +alias cd 'set old=$cwd; chdir \!*' +alias h history +alias j jobs -l +alias ll ls -lg +alias ls ls -g -k +alias back 'set back=$old; set old=$cwd; cd $back; unset back; dirs' + +# sccs stuff: sd/co/ci/allout/out/unedit +alias sd sccs diffs +alias co sccs get -e +alias ci sccs delget +alias allout "(cd ..; echo */SCCS/p.*|sed s/SCCS\\/p.//g)" +alias out "echo SCCS/p.*|sed s/SCCS\\/p.//g" +alias info sccs info +alias unedit sccs unedit +alias get sccs get +alias prt sccs prt +alias z suspend +alias x exit +alias pd pushd +alias pd2 pushd +2 +alias pd3 pushd +3 +alias pd4 pushd +4 +alias df df -k +alias du du -k +alias tset 'set noglob histchars=""; eval `\tset -s \!*`; unset noglob histchars' + +if ($?prompt) then + set prompt="`hostname -s`# " +endif diff --git a/etc/root/dot.klogin b/etc/root/dot.klogin new file mode 100644 index 000000000000..8de6b57c626d --- /dev/null +++ b/etc/root/dot.klogin @@ -0,0 +1,2 @@ +user1.root@your.realm.wherever +user2.root@your.realm.wherever diff --git a/etc/root/dot.login b/etc/root/dot.login new file mode 100644 index 000000000000..6406af639b3d --- /dev/null +++ b/etc/root/dot.login @@ -0,0 +1,4 @@ +tset -Q \?$TERM +stty crt erase ^H +umask 2 +echo "Don't login as root, use su" diff --git a/etc/root/dot.profile b/etc/root/dot.profile new file mode 100644 index 000000000000..47effabab962 --- /dev/null +++ b/etc/root/dot.profile @@ -0,0 +1,7 @@ +PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local:/usr/contrib:. +echo 'erase ^?, kill ^U, intr ^C' +stty crt erase  kill  intr  +export PATH +HOME=/root +export HOME +export TERM diff --git a/etc/security b/etc/security new file mode 100644 index 000000000000..de01e4556c86 --- /dev/null +++ b/etc/security @@ -0,0 +1,36 @@ +#!/bin/sh - +# +# @(#)security 5.3 (Berkeley) 5/28/91 +# +PATH=/sbin:/bin:/usr/bin + +host=`hostname -s` +echo "Subject: $host security check output" + +LOG=/var/log +TMP=/tmp/_secure.$$ + +echo "checking setuid files and devices:" +MP=`mount -t ufs | sed 's;/dev/;&r;' | awk '{ print $1 " " $3 }'` +set $MP +ls -lgT `while test $# -ge 2; do + device=$1 + shift + mount=$1 + shift + ncheck -s $device | sed -e "/:$/d" -e "/\/dev\//d" \ + -e "s;[^/]*;$mount;" -e "s;//;/;g" | sort +done` > $TMP + +if cmp $LOG/setuid.today $TMP >/dev/null; then :; else + echo "$host setuid/device diffs:" + diff $LOG/setuid.today $TMP + mv $LOG/setuid.today $LOG/setuid.yesterday + mv $TMP $LOG/setuid.today +fi +rm -f $TMP + +echo "" +echo "" +echo "checking for uids of 0:" +awk 'BEGIN {FS=":"} $3=="0" {print $1,$3}' /etc/master.passwd diff --git a/etc/services b/etc/services new file mode 100644 index 000000000000..c5794512723f --- /dev/null +++ b/etc/services @@ -0,0 +1,81 @@ +# +# Network services, Internet style +# +# @(#)services 5.8 (Berkeley) 5/9/91 +# +echo 7/tcp +echo 7/udp +discard 9/tcp sink null +discard 9/udp sink null +systat 11/tcp users +daytime 13/tcp +daytime 13/udp +netstat 15/tcp +qotd 17/tcp quote +chargen 19/tcp ttytst source +chargen 19/udp ttytst source +ftp 21/tcp +telnet 23/tcp +smtp 25/tcp mail +time 37/tcp timserver +time 37/udp timserver +rlp 39/udp resource # resource location +nameserver 42/tcp name # IEN 116 +whois 43/tcp nicname +domain 53/tcp nameserver # name-domain server +domain 53/udp nameserver +mtp 57/tcp # deprecated +# Bootp experimental (sellgren@vangogh) +bootp 67/udp # bootp server +#bootpc 68/udp # bootp client +# +tftp 69/udp +rje 77/tcp netrjs +finger 79/tcp +link 87/tcp ttylink +supdup 95/tcp +hostnames 101/tcp hostname # usually from sri-nic +tsap 102/tcp # part of ISODE. +#csnet-cs 105/? +pop 109/tcp postoffice +sunrpc 111/tcp +sunrpc 111/udp +auth 113/tcp authentication +sftp 115/tcp +uucp-path 117/tcp +nntp 119/tcp readnews untp # USENET News Transfer Protocol +snmp 161/udp +snmp-trap 162/udp +# +# UNIX specific services +# +exec 512/tcp +biff 512/udp comsat +login 513/tcp +who 513/udp whod +shell 514/tcp cmd # no passwords used +syslog 514/udp +printer 515/tcp spooler # line printer spooler +talk 517/udp +ntalk 518/udp +route 520/udp router routed +timed 525/udp timeserver +tempo 526/tcp newdate +courier 530/tcp rpc +conference 531/tcp chat +netnews 532/tcp readnews +netwall 533/udp # -for emergency broadcasts +uucp 540/tcp uucpd # uucp daemon +remotefs 556/tcp rfs_server rfs # Brunhoff remote filesystem + +ingreslock 1524/tcp +# +# Kerberos (Project Athena/MIT) services +# +kerberos 750/udp kdc # Kerberos (server) udp +kerberos 750/tcp kdc # Kerberos (server) tcp +krbupdate 760/tcp kreg # Kerberos registration +kpasswd 761/tcp kpwd # Kerberos "passwd" +klogin 543/tcp # Kerberos rlogin +eklogin 2105/tcp # Kerberos encrypted rlogin +kshell 544/tcp krcmd # Kerberos remote shell diff --git a/etc/shells b/etc/shells new file mode 100644 index 000000000000..df377f133737 --- /dev/null +++ b/etc/shells @@ -0,0 +1,6 @@ +# List of acceptable shells for chpass(1). +# Ftpd will not allow users to connect who are not using +# one of these shells. + +/bin/sh +/bin/csh diff --git a/etc/syslog.conf b/etc/syslog.conf new file mode 100644 index 000000000000..56f157692c0c --- /dev/null +++ b/etc/syslog.conf @@ -0,0 +1,8 @@ +*.err;kern.debug;auth.notice;mail.crit /dev/console +*.notice;kern.debug;lpr,auth.info;mail.crit /var/log/messages +mail.info /var/log/maillog +lpr.info /var/log/lpd-errs +*.err root +*.notice;auth.debug root +*.alert root +*.emerg * diff --git a/etc/ttys b/etc/ttys new file mode 100644 index 000000000000..f9e309934cad --- /dev/null +++ b/etc/ttys @@ -0,0 +1,40 @@ +# +# @(#)ttys 5.1 (Berkeley) 4/17/89 +# +# name getty type status comments +# +console "/usr/libexec/getty Pc" pc3 on secure +com01 "/usr/libexec/getty std.9600" unknown off secure +com02 "/usr/libexec/getty std.9600" unknown off secure +ttyp0 none network +ttyp1 none network +ttyp2 none network +ttyp3 none network +ttyp4 none network +ttyp5 none network +ttyp6 none network +ttyp7 none network +ttyp8 none network +ttyp9 none network +ttypa none network +ttypb none network +ttypc none network +ttypd none network +ttype none network +ttypf none network +ttyq0 none network +ttyq1 none network +ttyq2 none network +ttyq3 none network +ttyq4 none network +ttyq5 none network +ttyq6 none network +ttyq7 none network +ttyq8 none network +ttyq9 none network +ttyqa none network +ttyqb none network +ttyqc none network +ttyqd none network +ttyqe none network +ttyqf none network diff --git a/etc/weekly b/etc/weekly new file mode 100644 index 000000000000..79b46ffcb526 --- /dev/null +++ b/etc/weekly @@ -0,0 +1,59 @@ +#!/bin/sh - +# +# @(#)weekly 5.14 (Berkeley) 6/23/91 +# + +PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/libexec +export PATH + +host=`hostname -s` +echo "Subject: $host weekly run output" + +#echo "" +#echo "Removing old .o files:" +#find /usr/src -name '*.o' -atime +21 -print -a -exec rm -f {} \; + +# see if /usr/src exists and is local +# before looking there for checked-out files + +if [ -d /usr/src -a \ + X"`find -f /usr/src ! -fstype local -prune -or -type d -print -prune`" != X ]; +then + echo "looking for checked out files:" + TDIR=/tmp/_checkout$$ + + mkdir $TDIR + for file in `find -f /usr/src ! -fstype local -prune -or \ + -name 'p.*' -print | egrep 'SCCS/p\.'`; do + owner=`awk '{ print $3 }' $file` + echo "$owner $file" + echo $file >> $TDIR/$owner + done | sed -e 's,SCCS/p.,,' + for file in $TDIR/*; do + sed -e 's,SCCS/p.,,' $file | \ + Mail -s 'checked out files' `basename $file` + done + rm -rf $TDIR +fi + +if [ -f /usr/lib/uucp/clean.weekly ]; then + echo "" + echo "Cleaning up UUCP:" + echo /usr/lib/uucp/clean.weekly | su daemon +fi +echo "" + +echo "Rotating messages:" +cd /var/log +if [ -f messages.2 ]; then mv -f messages.2 messages.3; fi +if [ -f messages.1 ]; then mv -f messages.1 messages.2; fi +if [ -f messages.0 ]; then mv -f messages.0 messages.1; fi +mv -f messages messages.0 +cp /dev/null messages +chmod 644 messages +kill -1 `cat /var/run/syslog.pid` +cd / + +echo "" +echo "Rebuilding locate database:" +echo /usr/libexec/locate.updatedb | nice -5 su -m nobody 2>/dev/null