# cpgr - copy with locking the given file to the password or gr... - man(8) - [phpMan]

[_CPPW_(8)](https://www.chedong.com/phpMan.php/man/CPPW/8/markdown)                                System Manager's Manual                               [_CPPW_(8)](https://www.chedong.com/phpMan.php/man/CPPW/8/markdown)

## NAME
       cppw, cpgr - copy with locking the given file to the password or group file

## SYNOPSIS
       **cppw **[**-h**] [**-s**] password_file
       **cpgr **[**-h**] [**-s**] group_file


## DESCRIPTION
       **cppw  **and **cpgr **will copy, with locking, the given file to _/etc/passwd_ and _/etc/group_, respec‐
       tively.  With the **-s **flag, they will copy the shadow versions of those files, _/etc/shadow_ and
       _/etc/gshadow_, respectively.

       With the **-h **flag, the commands display a short help message and exit silently.

## SEE ALSO
       [**vipw**(8)](https://www.chedong.com/phpMan.php/man/vipw/8/markdown), [**vigr**(8)](https://www.chedong.com/phpMan.php/man/vigr/8/markdown), [**group**(5)](https://www.chedong.com/phpMan.php/man/group/5/markdown), [**passwd**(5)](https://www.chedong.com/phpMan.php/man/passwd/5/markdown), [**shadow**(5)](https://www.chedong.com/phpMan.php/man/shadow/5/markdown), [**gshadow**(5)](https://www.chedong.com/phpMan.php/man/gshadow/5/markdown)

## AUTHOR
       **cppw **and **cpgr **were written by Stephen Frost, based on **vipw **and **vigr **written by Guy Maor.

                                             7 Apr 2005                                      [_CPPW_(8)](https://www.chedong.com/phpMan.php/man/CPPW/8/markdown)
