Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
denying user root access to printer...
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
agrypa1
Apprentice
Apprentice


Joined: 31 Mar 2005
Posts: 244

PostPosted: Mon Apr 25, 2005 9:59 am    Post subject: denying user root access to printer... Reply with quote

I've read all the relevant forum posts on that. To no avail.
Test page from http://localhost:631 cannot be printed. The printer is configured with foomatic pnm2ppa.
Aditionally I emerged " net-print/ pnm2ppa ~amd64" because I am using an amd64 system.
cups.conf lists "allow from 127.0.0.1" entry for / and /admin.:
Code:

<Location />
Encryption IfRequested
Satisfy All
Order deny,allow
Deny From All
Allow From 127.0.0.1
</Location>
<Location /admin>
AuthType Basic
AuthClass System
Encryption IfRequested
Satisfy All
Order deny,allow
Deny From All
Allow From 127.0.0.1
</Location>

an attempt to print a test page from a web interface of cupsd results in this:

Code:
ReadClient: 5 GET /printers/DeskJet710C?op=print-test-page HTTP/1.1
D [25/Apr/2005:11:43:11 +0200] CGI /usr/lib/cups/cgi-bin/printers.cgi started - PID = 10623
I [25/Apr/2005:11:43:11 +0200] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=10623)
D [25/Apr/2005:11:43:11 +0200] SendCommand: 5 file=8
D [25/Apr/2005:11:43:11 +0200] AcceptClient: 7 from localhost:631.
D [25/Apr/2005:11:43:11 +0200] ReadClient: 7 POST /printers/DeskJet710C HTTP/1.1
D [25/Apr/2005:11:43:11 +0200] print_job: request file type is application/postscript.
D [25/Apr/2005:11:43:11 +0200] check_quotas: requesting-user-name = 'root'
I [25/Apr/2005:11:43:11 +0200] Denying user "root" access to printer "DeskJet710C"...
D [25/Apr/2005:11:43:11 +0200] Sending error: client-error-not-possible


Any ideas?
tnx
Agryppa
And yet another thing. See below. Is this bad?

Code:
gentoo linux # foomatic-configure -s cups -p HP-DeskJet_710C -c file:/dev/lp0 -n DeskJet710C -d pnm2ppa
Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/vendor_perl/5.8.5/Foomatic/DB.pm line 1895.
Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/vendor_perl/5.8.5/Foomatic/DB.pm line 1895.
Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/vendor_perl/5.8.5/Foomatic/DB.pm line 1895.
Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/vendor_perl/5.8.5/Foomatic/DB.pm line 1895.
Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/vendor_perl/5.8.5/Foomatic/DB.pm line 1895.
Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/vendor_perl/5.8.5/Foomatic/DB.pm line 1895.
Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/vendor_perl/5.8.5/Foomatic/DB.pm line 1895.
Back to top
View user's profile Send private message
Petyr
Guru
Guru


Joined: 08 Jan 2003
Posts: 471
Location: San Diego, CA, USA

PostPosted: Mon Apr 25, 2005 11:18 pm    Post subject: Reply with quote

Code:
Order deny,allow
Deny From All
Allow From 127.0.0.1


I don't have the apache stuff in front of me right now but doesn't that basically say "Deny from everyone"?

Try changing it to
Code:
Order allow,deny
Allow from 127.0.0.1
Deny From All


I might be crazy though, the coffee is running a wee thin here at work today.

Regards,

Petyr
_________________
If someone solves a problem for you put [SOLVED] in the title
Back to top
View user's profile Send private message
agrypa1
Apprentice
Apprentice


Joined: 31 Mar 2005
Posts: 244

PostPosted: Wed Apr 27, 2005 10:08 am    Post subject: Reply with quote

Petyr wrote:

Try changing it to
Code:
Order allow,deny
Allow from 127.0.0.1
Deny From All



It didn't work. I keep getting such an error when printing test page:

Code:
A print error occurred. Error message received from system:
cupsdoprint -P 'DeskJet710C' -J 'KDE Print Test' -H 'localhost:631' -U 'agrypa1' -o ' multiple-document-handling=separate-documents-uncollated-copies orientation-requested=3' '/usr/kde/3.3/share/apps/kdeprint/testprint.ps' : execution failed with message:
client-error-not-possible


I know that as a user I do not have permission to echo "test" > /dev/lp0
I added myslef to the lp group but it didn't help.

On the hardware side everything seems OK:
Code:
gentoo root # dmesg | grep parport
parport: PnPBIOS parport detected.
parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,EPP,ECP,DMA]
parport0: faking semi-colon
parport0: Printer, HEWLETT-PACKARD DESKJET 710C
lp0: using parport0 (interrupt-driven).


/proc/devices lists lp as an existing device.
If, as root, I execute:
Code:
gentoo root # echo "test" > /dev/lp0
gentoo root #             


Nothing happens.
The only thing in /var/log/messages that could hint whatver is this:
Code:
Apr 27 11:32:45 gentoo lp0: ECP mode
Apr 27 11:32:57 gentoo lp0: ECP mode
Apr 27 11:34:11 gentoo lp0: ECP mode


I am clueless....
Agryppa
_________________
The first successor of Saint Peter was Linus (a.d. 68-79) - whose namesake became the creator of Linux in our time. Torvalds' middle name is Benedict - the name assumed by the previous Pope who resigned from office.
Back to top
View user's profile Send private message
Birnenpfluecker
Guru
Guru


Joined: 01 Sep 2003
Posts: 315
Location: Lage, Germany

PostPosted: Wed Sep 21, 2005 2:30 pm    Post subject: Reply with quote

Same problem here with a HP 720C.
No clues?
Back to top
View user's profile Send private message
aliram
n00b
n00b


Joined: 17 Oct 2005
Posts: 6
Location: Glendale

PostPosted: Sun Nov 13, 2005 8:05 pm    Post subject: Reply with quote

I was having a simmilar problem with my epson stylus c60
The error involved this

multiple-document-handling=separate-documents-uncollated-copies orientation-requested=3'
'/usr/kde/3.3/share/apps/kdeprint/testprint.ps' : execution failed with message:
client-error-not-possible

Don't know what exactly was going on but I whent to the k control center
Modified the printer(under peripherals) under administrator mode.
What i did was to add "root" to allowed users
and then I changed my gimp-driver to "Foomatic/gimp-print-ijs". When I tested
the page it was not responding so i quickly turned off and on the printer.
After that it worked fine. I think that there's a problem with the way the printer starts up
and not the driver. But please don't quote me on that.
Back to top
View user's profile Send private message
MickKi
Veteran
Veteran


Joined: 08 Feb 2004
Posts: 1173

PostPosted: Sun Nov 20, 2005 6:35 pm    Post subject: Reply with quote

This problem is driving me insane. The first machine configured manually some time ago with the hpijs HP driver works fine. The second box with the same driver, but configured as per the Gentoo documentation guide will not print a test page either from the http GUI or from the KDE printer manager!

However, I don't seem to have a problem printing as a plain user using say Opera. So, I used the KDE printer manager to add "root" as a user and now I can print test pages from the GUI, but not from the test button in the KDE printer manager. It seems that this is because:
Code:
Unable to start child print process. The KDE print server (kdeprintd) could not be contacted. Check that this server is running.
Any idea how this daemon is meant to be started?
_________________
Regards,
Mick
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum