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, respectively. 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.  

AUTHOR

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

Willie has over 15 years of experience in Linux system administration and DevOps. After managing infrastructure for startups and enterprises alike, he founded Command Linux to share the practical knowledge he wished he had when starting out. He oversees content strategy and contributes guides on server management, automation, and security.