On (27/02/04 13:00), Wolfgang Pfeiffer wrote: > 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 Hi Wolfgang
Thanks for this although I was responding to the OP who was having trouble setting up printing. Using the browser, as I understand it, you are only configuring cups as the administrator if you login as root. I wouldn't imagine that you could inadvertantly do anything really dangerous from the browser except possibly screw up cups. However, I do find it a pain to login as root just for this and so I will add this to my growing list of tasks to conquer ;) Regards Clive -- http://www.clivemenzies.co.uk strategies for business -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]