ppuser - PPR user database management utility
ppuser [subcommand] [parameters ... ]
This program is used to manage PPR user charge accounts. Ordinary users may run the ppuser show subcommand. All other subcommands require that the user be ``root'', ``ppr'', or be listed in /etc/ppr/acl/ppuser.allow.
%%For:'' comments and ppr in the ppr.1 manpage -f switches.
``Real name'' is the name ``user name'' should be translated to before it
is used in queue listings or banner pages. (For example, if ``user name''
is ``jandrews'', ``real name'' might be ``Joseph Andrews. When ppr is
invoked by a unix user, this field is ignored in favour of the
/etc/passwd gecos field, but this field will eventually be used for jobs
received from personal computers.) Authcode is the password which will
identify the user. IInitialbalance> is the user's starting balance.
Cutoff is the balance below which printing privledges should be denied.
Life is the lifetime of the account. It is measured in days of
inactivity. Accounts are not deleted automatically, a separate program must
be employed to compare the period of inactivity to the life parameter. Such
a program is not included in the current distribution.
To set up a new account for John Jones with an initial deposit of $10.00, a cutoff when he is overdrawn by more than $2.50 and to have his account disappear if it is unused for a year:
$ /usr/lib/ppr/bin/ppuser add "John Jones" "John Jones" 10.00 -2.50 365
Or, if Mr. Jones will be entering an account-style name instead of his real name:
$ /usr/lib/ppr/bin/ppuser add jjones "John Jones" 10.00 -2.50 365
To set his password to ``secret'':
$ /usr/lib/ppr/bin/ppuser authcode "John Jones" secret
The user account database is kept in the file ``/etc/ppr/charge_users.db''.
If the file ``/var/spool/ppr/logs/ppuser'' exists and is writable by the user ``ppr'', then all ppuser commands are logged there.
Exit codes for ppuser are defined in the source code file ``include/util_exits.h''.
If you choose to compile PPR without GDBM, this program will be non-functional.
the ppr.1 manpage, the pprd.8 manpage, ``PPR, a PostScript Print Spooler'', ``Installing and Using PPR''.
PPR was written at Trinity College during 1993--2003. It was first released to the public on 26 April 1995.
David Chappell, Trinity College Computing Center, Hartford, Connecticut.