Crux vs cupsd/tcpwrappers
Hi, I have a strange problem with cups. I install port and found I cannot connect to port 631. To address it I added /etc/hosts.allow cupsd: 127.0.0.1 No I can connect to localhost:631, but cannot add any printer. In logs I see: W [06/Mar/2014:21:09:29 +0000] Connection from localhost refused by /etc/hosts.allow and /etc/hosts.deny rules. But: tcpcheck -v shows:
Rule /etc/hosts.allow line 7: daemons: cupsd warning: /etc/hosts.allow, line 7: cupsd: no such process name in /etc/inetd.conf clients: 127.0.0.1 access: granted
Any suggestion? I haven't changed default cups configs. Cheers, Wawrzek -- Dr Wawrzyniec Niewodniczański or Wawrzek for short PhD in Quantum Chemistry & MSc in Molecular Engineering WWW: http://wawrzek.name E-MAIL: jobs@wawrzek.name Linux User #177124
Just make your /etc/hosts.allow be ALL: ALL and be done with it. cheers James James Mills / prologic E: prologic@shortcircuit.net.au W: prologic.shortcircuit.net.au On Fri, Mar 7, 2014 at 7:11 AM, Wawrzek Niewodniczanski <main@wawrzek.name>wrote:
Hi,
I have a strange problem with cups. I install port and found I cannot connect to port 631. To address it I added /etc/hosts.allow cupsd: 127.0.0.1
No I can connect to localhost:631, but cannot add any printer. In logs I see: W [06/Mar/2014:21:09:29 +0000] Connection from localhost refused by /etc/hosts.allow and /etc/hosts.deny rules.
But: tcpcheck -v shows:
Rule /etc/hosts.allow line 7: daemons: cupsd warning: /etc/hosts.allow, line 7: cupsd: no such process name in /etc/inetd.conf clients: 127.0.0.1 access: granted
Any suggestion? I haven't changed default cups configs.
Cheers, Wawrzek -- Dr Wawrzyniec Niewodniczański or Wawrzek for short PhD in Quantum Chemistry & MSc in Molecular Engineering WWW: http://wawrzek.name E-MAIL: jobs@wawrzek.name Linux User #177124 _______________________________________________ CRUX mailing list CRUX@lists.crux.nu http://lists.crux.nu/mailman/listinfo/crux
On Thu, Mar 06, 2014 at 09:11:15PM +0000, Wawrzek Niewodniczanski wrote:
Hi,
I have a strange problem with cups. I install port and found I cannot connect to port 631. To address it I added /etc/hosts.allow cupsd: 127.0.0.1
try cupsd: 127.0.0.1 localhost for some unknown reasons cups, and only cups AFAIK, needs both to work properly. I'll add a note about that to the cups README. Greetings Juergen
On Fri, Mar 07, 2014 at 09:26:42AM +0100, Juergen Daubert wrote:
On Thu, Mar 06, 2014 at 09:11:15PM +0000, Wawrzek Niewodniczanski wrote:
Hi,
I have a strange problem with cups. I install port and found I cannot connect to port 631. To address it I added /etc/hosts.allow cupsd: 127.0.0.1
try
cupsd: 127.0.0.1 localhost
for some unknown reasons cups, and only cups AFAIK, needs both to work properly. I'll add a note about that to the cups README.
I remember having to append ': allow' even in the host.allow file to make exim work. Don't ask me why :).
On Fri, Mar 7, 2014 at 7:03 PM, Walter Alejandro Iglesias <eloi@roquesor.com
wrote:
I remember having to append ': allow' even in the host.allow file to make exim work. Don't ask me why :).
It really _is_ easier to just use: ALL_ ALL :) cheers James James Mills / prologic E: prologic@shortcircuit.net.au W: prologic.shortcircuit.net.au
On Fri, Mar 07, 2014 at 07:17:29PM +1000, James Mills wrote:
On Fri, Mar 7, 2014 at 7:03 PM, Walter Alejandro Iglesias <eloi@roquesor.com
wrote:
I remember having to append ': allow' even in the host.allow file to make exim work. Don't ask me why :).
It really _is_ easier to just use: ALL_ ALL
I know how to use iptables - when needed - and all you've explained. You've already explained yourself clearly, if somebody here has not understood your point he will ask you. Thanks. Anyway, since tcp wrappers, useful or not, are still a functional part of my OS I'm still curious about the host.allow issue. Just curious. Can I? @Wawrzek, Have you got it working adding ': allow'?
On 7 March 2014 08:26, Juergen Daubert <jue@jue.li> wrote:
On Thu, Mar 06, 2014 at 09:11:15PM +0000, Wawrzek Niewodniczanski wrote:
Hi,
I have a strange problem with cups. I install port and found I cannot connect to port 631. To address it I added /etc/hosts.allow cupsd: 127.0.0.1
try
cupsd: 127.0.0.1 localhost
Thanks it works.
for some unknown reasons cups, and only cups AFAIK, needs both to work properly. I'll add a note about that to the cups README.
Good idea. Now I have another problem related to my hp deskjet f4280 printer. I installed hpcups and my printer was recognise by cups but I cannot print anything, even test page. On the test page (webpage in cups) I see following lines: Print Test Page HP_Deskjet_F4200_series Error Unable to print test page: No such file or directory I tried both hplip 3.14.1 from port and latest 3.14.3 (BTW. Please update port). Also I don't see in Firefox, but LibreOffice see it, however cannot properly print. I see jobs in the completed jobs list, but they are cancelled with size 0. Regards, Wawrzek PS. Error messages from log (from test page run). D [07/Mar/2014:22:41:31 +0000] [Client 11] POST /printers/HP_Deskjet_F4200_series HTTP/1.1 D [07/Mar/2014:22:41:31 +0000] cupsdSetBusyState: newbusy="Active clients", busy="Not busy" D [07/Mar/2014:22:41:31 +0000] [Client 11] Authorized as XXX using Basic D [07/Mar/2014:22:41:31 +0000] [CGI] argv[0] = "/usr/lib/cups/cgi-bin/printers.cgi" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[0] = "CUPS_CACHEDIR=/var/cache/cups" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[1] = "CUPS_DATADIR=/usr/share/cups" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[2] = "CUPS_DOCROOT=/usr/share/cups/doc" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[3] = "CUPS_FONTPATH=/usr/share/cups/fonts" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[4] = "CUPS_REQUESTROOT=/var/spool/cups" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[5] = "CUPS_SERVERBIN=/usr/lib/cups" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[6] = "CUPS_SERVERROOT=/etc/cups" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[7] = "CUPS_STATEDIR=/var/run/cups" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[8] = "HOME=/var/spool/cups/tmp" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[9] = "PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[10] = "SERVER_ADMIN=root@YYY" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[11] = "SOFTWARE=CUPS/1.7.1" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[12] = "TMPDIR=/var/spool/cups/tmp" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[13] = "USER=root" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[14] = "CUPS_MAX_MESSAGE=2047" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[15] = "CUPS_SERVER=/var/run/cups/cups.sock" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[16] = "CUPS_ENCRYPTION=IfRequested" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[17] = "IPP_PORT=631" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[18] = "AUTH_TYPE=Basic" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[19] = "LANG=en_US.UTF8" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[20] = "REDIRECT_STATUS=1" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[21] = "GATEWAY_INTERFACE=CGI/1.1" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[22] = "SERVER_NAME=localhost" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[23] = "SERVER_PORT=631" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[24] = "REMOTE_ADDR=127.0.0.1" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[25] = "REMOTE_HOST=localhost" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[26] = "SCRIPT_NAME=/printers/HP_Deskjet_F4200_series" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[27] = "SCRIPT_FILENAME=/usr/share/cups/doc/printers/HP_Deskjet_F4200_series" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[28] = "PATH_INFO=/HP_Deskjet_F4200_series" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[29] = "REMOTE_USER=XXX" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[30] = "SERVER_PROTOCOL=HTTP/1.1" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[31] = "HTTP_COOKIE=org.cups.sid=f92abcc38becd7e65a5f7df1bccfc2a9" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[32] = "HTTP_USER_AGENT=Mozilla/5.0 (X11; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[33] = "HTTP_REFERER=http://localhost:631/printers/HP_Deskjet_F4200_series" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[34] = "REQUEST_METHOD=POST" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[35] = "CONTENT_LENGTH=64" D [07/Mar/2014:22:41:31 +0000] [CGI] envp[36] = "CONTENT_TYPE=application/x-www-form-urlencoded" D [07/Mar/2014:22:41:31 +0000] [CGI] Started /usr/lib/cups/cgi-bin/printers.cgi (PID 25457) I [07/Mar/2014:22:41:31 +0000] [Client 11] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=25457) D [07/Mar/2014:22:41:31 +0000] [Client 11] file=13 D [07/Mar/2014:22:41:31 +0000] [Client 11] Waiting for CGI data. D [07/Mar/2014:22:41:31 +0000] [CGI] org.cups.sid cookie is "f92abcc38becd7e65a5f7df1bccfc2a9" : -- Dr Wawrzyniec Niewodniczański or Wawrzek for short PhD in Quantum Chemistry & MSc in Molecular Engineering WWW: http://wawrzek.name E-MAIL: jobs@wawrzek.name Linux User #177124
On 7 March 2014 22:58, Wawrzek Niewodniczanski <main@wawrzek.name> wrote: [...]
On the test page (webpage in cups) I see following lines:
Print Test Page HP_Deskjet_F4200_series Error [...]
Also I don't see in Firefox, but LibreOffice see it, however cannot properly print. I see jobs in the completed jobs list, but they are cancelled with size 0.
I installed foomatic-filters and now can print from LibreOffice, but not from Firefox yet. Do I need recompile it? Cheers, Wawrzek -- Dr Wawrzyniec Niewodniczański or Wawrzek for short PhD in Quantum Chemistry & MSc in Molecular Engineering WWW: http://wawrzek.name E-MAIL: jobs@wawrzek.name Linux User #177124
On Fri, Mar 07, 2014 at 11:15:31PM +0000, Wawrzek Niewodniczanski wrote:
On 7 March 2014 22:58, Wawrzek Niewodniczanski <main@wawrzek.name> wrote:
[...]
On the test page (webpage in cups) I see following lines:
Print Test Page HP_Deskjet_F4200_series Error [...]
Also I don't see in Firefox, but LibreOffice see it, however cannot properly print. I see jobs in the completed jobs list, but they are cancelled with size 0.
I installed foomatic-filters and now can print from LibreOffice, but not from Firefox yet. Do I need recompile it?
IMO no, but you have to rebuild gtk after installing cups stuff. You'll get two new files libprintbackend-cups.* HTH and best regards Juergen
On 9 March 2014 08:23, Juergen Daubert <jue@jue.li> wrote:
On Fri, Mar 07, 2014 at 11:15:31PM +0000, Wawrzek Niewodniczanski wrote:
On 7 March 2014 22:58, Wawrzek Niewodniczanski <main@wawrzek.name> wrote:
[...]
I installed foomatic-filters and now can print from LibreOffice, but not from Firefox yet. Do I need recompile it?
IMO no, but you have to rebuild gtk after installing cups stuff. You'll get two new files libprintbackend-cups.*
For now I found that Firefox and Acrobate Reader works fine when selected: 'print to lpr' - Firefox 'print to lp' - Reader I just needed to tick 'Default printer' in Cups. I'll try rebuild gtk and let you know. Thanks, Wawrzek -- Dr Wawrzyniec Niewodniczański or Wawrzek for short PhD in Quantum Chemistry & MSc in Molecular Engineering WWW: http://wawrzek.name E-MAIL: jobs@wawrzek.name Linux User #177124
On 9 March 2014 08:23, Juergen Daubert <jue@jue.li> wrote:
On Fri, Mar 07, 2014 at 11:15:31PM +0000, Wawrzek Niewodniczanski wrote:
On 7 March 2014 22:58, Wawrzek Niewodniczanski <main@wawrzek.name> wrote:
[...]
I installed foomatic-filters and now can print from LibreOffice, but not from Firefox yet. Do I need recompile it?
IMO no, but you have to rebuild gtk after installing cups stuff. You'll get two new files libprintbackend-cups.*
It seems to help Firefox to see the printer. Thanks, Wawrzek -- Dr Wawrzyniec Niewodniczański or Wawrzek for short PhD in Quantum Chemistry & MSc in Molecular Engineering WWW: http://wawrzek.name E-MAIL: jobs@wawrzek.name Linux User #177124
participants (4)
-
James Mills
-
Juergen Daubert
-
Walter Alejandro Iglesias
-
Wawrzek Niewodniczanski