copy with locking the given file to the password or group file
see also :
vipw - vigr - passwd
[-h] [-s] password_file
cpgr [-h] [-s] group_file
add an example, a script, a trick and tips
no example yet ...
... Feel free to add your own example above to help other Linux-lovers !
cpgr will copy, with locking, the given file to
/etc/passwd and /etc/group, respectively. With
the -s flag, they will copy the shadow versions
of those files, /etc/shadow and /etc/gshadow,
-h flag, the commands display a short help
message and exit silently.
vigr , group, passwd ,
cpgr were written by Stephen Frost, based on
vipw and vigr written by Guy Maor.