Add a chkgrp run after backing up the passwd and group files.

Suggested-by: Andreas Klemm
This commit is contained in:
Dag-Erling Smørgrav 1998-05-24 15:57:31 +00:00
parent 83bc6a1106
commit 1d70d1dd0a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=36333

View file

@ -1,6 +1,6 @@
#!/bin/sh
#
# $Id: 200.backup-passwd,v 1.1.1.1 1997/08/12 17:51:15 pst Exp $
# $Id: 200.backup-passwd,v 1.1.1.1 1997/08/16 17:04:00 pst Exp $
#
bak=/var/backups
@ -32,4 +32,10 @@ if [ -f /etc/master.passwd -o -f /etc/group ] ; then
mv $bak/group.bak $bak/group.bak2
cp -p /etc/group $bak/group.bak
fi
if [ -f /etc/group ] ; then
echo ""
echo "Verifying group file syntax:"
chkgrp /etc/group
fi
fi