diff options
author | des <des@FreeBSD.org> | 1998-05-24 15:57:31 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 1998-05-24 15:57:31 +0000 |
commit | 5c3662c36d128579c9e069b1d11cb8121a02787b (patch) | |
tree | c58db2989c27cb5a5a04a86b551ca890b67018a1 /etc/periodic | |
parent | 0b2190c45a326d79c67235e7c24027b927a46a4d (diff) | |
download | FreeBSD-src-5c3662c36d128579c9e069b1d11cb8121a02787b.zip FreeBSD-src-5c3662c36d128579c9e069b1d11cb8121a02787b.tar.gz |
Add a chkgrp run after backing up the passwd and group files.
Suggested-by: Andreas Klemm
Diffstat (limited to 'etc/periodic')
-rwxr-xr-x | etc/periodic/daily/200.backup-passwd | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/etc/periodic/daily/200.backup-passwd b/etc/periodic/daily/200.backup-passwd index bc2f8e9..f699399 100755 --- a/etc/periodic/daily/200.backup-passwd +++ b/etc/periodic/daily/200.backup-passwd @@ -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 |