/usr/bin/create-cpmdb is in cpm 0.32-1.1build1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #!/bin/bash
#
# Create an empty CPM db for the user
# Kacper Wysocki, 2010-07-09
file=${1:-~/.cpmdb}
file=`readlink -m $file`
if [ -f "$file" ]
then
echo "You already have a $file file. If you want a new, empty password"
echo "database, then you should delete $file and rerun this script."
exit 1
fi
cd /tmp/
tmp=`mktemp /tmp/cpm.XXXXX || echo mktemp failed && exit 1`
/usr/share/cpm/import.sh general $tmp
mv -v cpm_convert.db $file
rm $tmp
|