
186
|
Chapter 8: Local Network Services
lppasswd
Changes the CUPS password used by the system. Set
AuthType to Digest in the
cupsd.conf configuration file.
enable and disable
Starts or stops the specified queue. The most frequently used command is dis-
able with the -c option, to stop a queue and cancel all the jobs currently in the
queue.
accept and reject
Causes the print queue to begin accepting or rejecting new jobs.
lprm
Removes a job from the queue. You can specify the queue (-P
queue) and the job
identifier (obtained with lpstat).
lpmove
Moves a print job from one queue to another with a job identifier and a queue
name (e.g., lpmove queue1-46 queue2).
You can try these commands on your own. Here’s an example of the first one on the
printer we just set up using the CUPS interface:
# lpc status
BrotherHL1440:
printer is on device 'parallel' speed -1
queuing is enabled
printing is enabled
no entries
daemon present
User Management
In Linux, you can manage users (add, change, delete) in many ways. In the begin-
ning of this section, we’re going to assume that each server you administer has its
own database of users, found in the /etc/passwd file. We’re also going to assume that
you know the basics of adding and deleting user accounts with the commands
adduser and useradd for whatever distribution you use, since they differ from distro
to distro.
Different Linux distributions have changed the default behavior ...