diff --git a/etc/rc b/etc/rc index 1db226dc286b..14c23634f2fc 100644 --- a/etc/rc +++ b/etc/rc @@ -1,5 +1,5 @@ -# @(#)rc 5.27 (Berkeley) 6/5/91 -# $Id: rc,v 1.44 1994/06/08 18:47:45 mycroft Exp $ +# from: @(#)rc 8.2 (Berkeley) 3/17/94 +# $Id: rc,v 1.45 1994/06/18 06:38:54 cgd Exp $ # System startup script run by init on autoboot # or after single-user. @@ -78,7 +78,7 @@ mount /var >/dev/null 2>&1 rm -f /etc/nologin rm -f /var/spool/lock/LCK.* rm -f /var/spool/uucp/STST/* -(cd /var/run && { rm -rf -- *; cp /dev/null utmp; chmod 644 utmp; }) +(cd /var/run && { rm -rf -- *; install -c -m 664 -g utmp /dev/null utmp; }) echo -n 'starting rpc daemons:' echo -n ' portmap'; portmap diff --git a/etc/rc.local b/etc/rc.local index 937279836396..859e0de11ec1 100644 --- a/etc/rc.local +++ b/etc/rc.local @@ -2,11 +2,11 @@ # site-specific startup actions, daemons # # From: @(#)rc.local 5.4 (Berkeley) 12/14/90 -# $Id: rc.local,v 1.9 1994/06/16 18:59:16 deraadt Exp $ +# $Id: rc.local,v 1.10 1994/06/18 06:38:56 cgd Exp $ # if [ ! -f /etc/motd ]; then - echo "" >/etc/motd && chmod 664 /etc/motd && chown root:wheel /etc/motd + install -c -o root -g wheel -m 664 /dev/null /etc/motd fi T=/tmp/_motd rm -f $T