mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Add a chkgrp run after backing up the passwd and group files.
Suggested-by: Andreas Klemm
This commit is contained in:
parent
83bc6a1106
commit
1d70d1dd0a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=36333
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue