Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #239332

Re: CUPS permissions

From Greg Wooledge <greg@wooledge.org>
Newsgroups linux.debian.user
Subject Re: CUPS permissions
Date 2021-08-26 15:00 +0200
Message-ID <CQn97-7XU-3@gated-at.bofh.it> (permalink)
References (2 earlier) <CQ68i-557-11@gated-at.bofh.it> <CQ6Bj-5un-1@gated-at.bofh.it> <CQmmK-7FN-11@gated-at.bofh.it> <CQmPM-7Q9-13@gated-at.bofh.it> <CQmPM-7Q9-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Aug 26, 2021 at 01:37:49PM +0100, Brian wrote:
> On Thu 26 Aug 2021 at 13:23:58 +0100, mick crane wrote:
> 
> > On 2021-08-26 12:59, Peter Ehlert wrote:
> > > On 8/25/21 12:11 PM, Greg Wooledge wrote:
> > 
> > > > Some people report restarting the browser is enough.  Some claim they
> > > > have to reboot.  Who knows.
> > > > 
> > > thanks. restarting firefox worked.
> > > I got the login dialog box
> > > 
> > > after login as (user)
> > > Add Printer gives> Unable to add printer: Forbidden
> > > 
> > > back to square one
> > 
> > I've got a print server working but I've forgotten how.
> > added a new printer a year or so ago.
> > Might have been lpadmin or something.
> > I do know always have to reboot after making changes.
> 
> Rebooting after adding a printer is *never* needed.

Agreed.

I suspect there's some *really* basic misunderstanding going on at some
level.  Let's start from the beginning.

In order to administer a printer in CUPS, you do the following things:


1) Make sure the root account has a PASSWORD.  Make sure you know it.
   Access to sudo doesn't count.

2) Install cups.

3) Visit http://localhost:631/ in a GUI web browser.  Make sure Javascript
   is allowed.

4) At some point, when you try to do stuff to the printers in the browser,
   you will be prompted for a username and password, using HTTP basic
   authentication.  When this occurs, you should login as root, using
   root's password.

5) If you screwed up and logged in as yourself, restart the web browser
   so that you can get the HTTP basic authentication dialog box again.  Go
   to step 4.

6) Once the printer is set up via the browser, you should be able to see
   it and print to it from the command line.  "lpstat -t" to see all of
   the printers and their status.  "lp" or "lpr" to print a text file.


Any variants on this procedure will require knowledge that I don't
personally possess.  E.g. if for some reason you refuse to set a root
password, then you may have to set up a printer-admin account which
has the appropriate privileges, and a password, and then use that
instead of root.  I don't know what those privs would be.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

CUPS permissions Peter Ehlert <pb21a@sdi-baja.com> - 2021-08-25 14:50 +0200
  Re: CUPS permissions Henning Follmann <hfollmann@itcfollmann.com> - 2021-08-25 18:30 +0200
    Re: CUPS permissions Peter Ehlert <pb21a@sdi-baja.com> - 2021-08-25 20:50 +0200
      Re: CUPS permissions Greg Wooledge <greg@wooledge.org> - 2021-08-25 21:20 +0200
        Re: CUPS permissions Peter Ehlert <pb21a@sdi-baja.com> - 2021-08-26 14:10 +0200
          Re: CUPS permissions Tixy <tixy@yxit.co.uk> - 2021-08-26 14:30 +0200
          Re: CUPS permissions Brian <ad44@cityscape.co.uk> - 2021-08-26 14:40 +0200
            Re: CUPS permissions Greg Wooledge <greg@wooledge.org> - 2021-08-26 15:00 +0200
              Re: CUPS permissions Brian <ad44@cityscape.co.uk> - 2021-08-26 17:20 +0200
              Re: CUPS permissions Peter Ehlert <pb21a@sdi-baja.com> - 2021-08-28 16:20 +0200
              Re: CUPS permissions >Fixed Peter Ehlert <peter@sdi-baja.com> - 2021-08-28 16:40 +0200
                Re: CUPS permissions >Fixed Greg Wooledge <greg@wooledge.org> - 2021-08-28 21:40 +0200
                Re: CUPS permissions >Fixed Brian <ad44@cityscape.co.uk> - 2021-08-28 22:10 +0200
                Re: CUPS permissions >Fixed Brian <ad44@cityscape.co.uk> - 2021-08-28 21:40 +0200
          Re: CUPS permissions Eduardo M KALINOWSKI <eduardo@kalinowski.com.br> - 2021-08-26 14:40 +0200
          Re: CUPS permissions Charles Curley <charlescurley@charlescurley.com> - 2021-08-26 14:50 +0200
  Re: CUPS permissions Keith Bainbridge <keithrboz@gmail.com> - 2021-08-26 01:40 +0200
    Re: CUPS permissions Brian <ad44@cityscape.co.uk> - 2021-08-26 14:10 +0200
      Re: CUPS permissions Peter Ehlert <pb21a@sdi-baja.com> - 2021-08-26 15:20 +0200
        Re: CUPS permissions Brian <ad44@cityscape.co.uk> - 2021-08-26 16:50 +0200
          Re: CUPS permissions Greg Wooledge <greg@wooledge.org> - 2021-08-26 17:00 +0200
            Re: CUPS permissions Brian <ad44@cityscape.co.uk> - 2021-08-26 17:30 +0200
              Re: CUPS permissions Greg Wooledge <greg@wooledge.org> - 2021-08-26 17:40 +0200
                Re: CUPS permissions "Andrew M.A. Cater" <amacater@einval.com> - 2021-08-26 18:50 +0200
                Re: CUPS permissions Brian <ad44@cityscape.co.uk> - 2021-08-26 21:00 +0200
                Re: CUPS permissions Brian <ad44@cityscape.co.uk> - 2021-08-26 19:30 +0200
                Re: CUPS permissions <tomas@tuxteam.de> - 2021-08-26 20:20 +0200
                Re: CUPS permissions Greg Wooledge <greg@wooledge.org> - 2021-08-26 20:30 +0200
                Re: CUPS permissions <tomas@tuxteam.de> - 2021-08-26 21:00 +0200
            Re: CUPS permissions Brian <ad44@cityscape.co.uk> - 2021-08-26 17:30 +0200

csiph-web