17
February
2022
CUPS problem Solving when adding a printer "unable to add printer: ForBidden "
17:30

CUPS problem Solving when adding a printer "unable to add printer: ForBidden "

17 February 2022 17:30

If there is a problem with the addition of a printer through the CUPS system
http: // localhost:631/admin/, this error can be fixed.

Error message "unable to add printer: Forbidden" возникает при нажатии кнопки "Add printer":
Add

As you can guess, the problem when adding a printer ("Add Printer") Related to the rights of the current user.

The right to administration are users of the LP groupadmin ", which is indicated in the file

/etc/cups/cups-files.conf :

#
# Administrator user group, used to match @SYSTEM in cupsd.conf policy rules ...
# This C.annot contain the Group value for security reaSons ...
SystemGroup lpadmin


Add the current user to the "LP groupadmin ":

whoamI

We learned the name of the user. Now add it to the "lpadmin ":

sudo usermod -aG lpadmin vladimir

The problem is solved.

You can also add the user to the group through the LXQT graphic interface:

Start - Parameters - LXQT settings - users and groups
LXQT

If the user is in the "LP groupadmin ", then problems with the administration of CUPS through the web interface do not arise.

CuPS check

When switching to the CUPS administration page, there is no longer a message about the need to enter the user and password name.

The initial page of CUPS
http: // localhost:631/

Printers:
http: // localhost:631/printers/?

Tasks:
http: // localhost:631/jobs/?WHICH_JOBS=aLL



Related publications