|
@ -1,6 +1,6 @@ |
|
|
#!/bin/sh - |
|
|
#!/bin/sh - |
|
|
# |
|
|
# |
|
|
# $OpenBSD: security,v 1.7 1996/09/15 20:12:18 deraadt Exp $ |
|
|
|
|
|
|
|
|
# $OpenBSD: security,v 1.8 1996/09/15 20:29:41 deraadt Exp $ |
|
|
# |
|
|
# |
|
|
PATH=/sbin:/usr/sbin:/bin:/usr/bin |
|
|
PATH=/sbin:/usr/sbin:/bin:/usr/bin |
|
|
|
|
|
|
|
@ -14,15 +14,15 @@ TMP3=$DIR/_secure4 |
|
|
LIST=$DIR/_secure5 |
|
|
LIST=$DIR/_secure5 |
|
|
OUTPUT=$DIR/_secure6 |
|
|
OUTPUT=$DIR/_secure6 |
|
|
|
|
|
|
|
|
trap 'rm -rf $DIR' 0 |
|
|
|
|
|
|
|
|
|
|
|
umask 077 |
|
|
|
|
|
if ! mkdir $DIR ; then |
|
|
if ! mkdir $DIR ; then |
|
|
printf "tmp directory %s already exists, looks like:\n" $DIR |
|
|
printf "tmp directory %s already exists, looks like:\n" $DIR |
|
|
ls -alF $DIR |
|
|
ls -alF $DIR |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
trap 'rm -rf $DIR' 0 |
|
|
|
|
|
|
|
|
# Check the master password file syntax. |
|
|
# Check the master password file syntax. |
|
|
MP=/etc/master.passwd |
|
|
MP=/etc/master.passwd |
|
|
awk -F: '{ |
|
|
awk -F: '{ |
|
|