[Fwd: Re: No printing at all!]

From: Wolfgang Pfeiffer (roto_at_gmx.net)
Date: 02/27/04

  • Next message: Richard Lyons: "Re: openoffice"
    To: Clive Menzies <clive@clivemenzies.co.uk>, debian-user-list <debian-user@lists.debian.org>
    Date: Fri, 27 Feb 2004 13:00:22 +0100
    
    

    Hi Clive,

    I sent the message below more than 12 hours ago to the debian-user list:
    I didn't see it there
    until now, so I'll try to send it again.

    BTW: I definitely don't know whether my suggestions below will work in a
    network. I tested them, as I'll write below, only on a single machine
    where they work ...

    HTH

    Nice week-end.

    Best Regards
    Wolfgang

    -----Forwarded Message-----
    From: Wolfgang Pfeiffer <roto@gmx.net>
    To: debian-user-list <debian-user@lists.debian.org>
    Subject: Re: No printing at all!
    Date: Thu, 26 Feb 2004 22:27:05 +0100

    On Wed, 2004-02-25 at 19:18, Clive Menzies wrote:
    > On (25/02/04 17:23), Alisdair wrote:
    > > After using Mandrake and Knoppix over the last couple of years I have finally
    > > managed to install a working Debian system :-), and everything seems to be
    > > fine except the printing :-(
    > >
    > > I have looked through several forums, and done my best to rtfm but haven't
    > > come up with anything that has made a difference. I suspect it is something
    > > very basic but...
    > >
    > > I'm afraid I am at a complete loss. lp seems okay. CUPS seems to be properly
    > > installed. In fact I have installed it and gs several times, but there is no
    > > output at all, and no indication that my HP Laserjet 5L (using the hpijs ppd)
    > > is even being told to do anything, although CUPS detects the printer is
    > > present on /dev/lp0.
    > >
    > > Below is the contents of:
    > > 1. lpinfo -v
    > > 2. /var/log/cups/error.log
    > > 3. /etc/cups/cupsd.conf
    > >
    > > If anyone can help me get this sorted out I would be VERY grateful.
    > >
    > > Regards, Alisdair.
    > I am no expert but have wrestled (successfully in time) with printing both
    > locally and via the network. I found adminstering printers via a web
    > browser is fairly straightforward. URL http://localhost:631/admin
    > login as root and you should get a reasonable idea of what is going on.

    Hi Clive

    I'd always try to do things as much and as often as possible as
    non-root: Some time ago I removed my complete .mozilla files by hitting
    the Enter key accidentally, and a bit too early:
    rm -rf .mozilla/
    Was a nice moment to realise, you'll certainly believe .. (actually I
    simply wanted to remove the stuff in the Mozilla Cache ... )

    I'd think it means shouting for problems if someone tries to become root
    unnecessarily. Provided I understand you correctly you suggest to log
    out of your non-root and user X to enter an X-session as root: IIRC I
    even set Gnome to forbid root to start an X-session here: I know how
    fast I make mistakes on X .... :)

    Here's the URL for CUPS where the documentation for authentication
    stuff starts, IINM:

    <http://localhost:631/sam.html#AuthClass>

    And here's a
    /etc/cups/cupsd.conf
    that allows only users in group foo, on one machine with several users,
    to manage the CUPS printing system, and only after he or she provided
    their username/passwd ...

    [ /etc/groups file ....
    adduser <user-login-name> foo
    ... login ... logout .. IIRC ]

    I didn't test so far whether this also works on a network connected to
    some printer, but I'd believe it could work ... not being sure on that
    ..

    At least here on
    http://localhost:631
    on a single machine with several users: after some initial tests it
    seems to work:

    Here's the corresponding cupsd.conf:
    ---------------------------
    LogLevel debug
    Printcap /var/run/cups/printcap
    <Location />
    Order Deny,Allow
    Deny From All
    Allow From 127.0.0.1
    </Location>
    <Location /admin>
    AuthType Basic
    AuthClass Group
    AuthGroupName foo
    Order Deny,Allow
    Deny From All
    Allow From 127.0.0.1
    </Location>
    ----------------------------------

    So with this last cupsd.conf it seems you don't need to be root to
    change your CUPS settings and you can decide who of the users on a
    machine will be able to to change these settings ...

    I swear I love this crap, at least some times ..... :)

    PS:
    I'd
    cp -r /etc/cups/ /path/to/other/directory/cups.working
    before changing some printer settings ... :)

    HTH, too ...

    Best Regards

    Wolfgang

    >
    > HTH
    >
    > Clive
    > --
    > http://www.clivemenzies.co.uk
    > strategies for business

    -- 
    Profile, Links: http://profiles.yahoo.com/wolfgangpfeiffer
    -- 
    To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Richard Lyons: "Re: openoffice"

    Relevant Pages

    • Re: Encrypted file system without initial password:
      ... It works OK but my question is, can one make it boot ... This was not a question about potential root exploits. ... These settings can then be password-protected in the BIOS ...
      (comp.os.linux.security)
    • Re: Re: Ruby/Tk: How to access surrounding class from Tk Callback?
      ... # Do something with @root and @foo ... puts @root.foo # DOES NOT WORK ... @root in your button's command is an instance variable ...
      (comp.lang.ruby)
    • Re: How to Configure Qmail on Fedora Core 1 Server
      ... > could well be good security reasons for root not to read his mail while ... Having options in the config file to ... All you need to do is to create another account 'foo' and alias root's ...
      (Fedora)
    • Re: ASP.NET webs not working
      ... I tend to always go into IIS and verify the Application Root setting for each web / subweb on my ... Thomas A. Rowe ... FrontPage Resources, WebCircle, MS KB Quick Links, etc. ... >>> application settings were simple and easily reversible in an effort to ...
      (microsoft.public.frontpage.client)
    • Re: How to Configure Qmail on Fedora Core 1 Server
      ... >>could well be good security reasons for root not to read his mail while ... >>while sitting at the desk) and on a Windows machine, no less, seems even ... >mail to foo. ... The foo account need not even have a valid shell to ...
      (Fedora)