LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   CUPS error in Slackware 12 (https://www.linuxquestions.org/questions/slackware-14/cups-error-in-slackware-12-a-622353/)

aus9 02-22-2008 05:15 AM

ok while waiting I had another look at my /etc/cups/cupsd.conf

do you have these lines?
# Only listen for connections from the local machine.
Listen *:631
Listen /var/run/cups/cups.sock

then when I read authenication lines I remembered that I set mine up to allow all users, so maybe you need to
su
issue web browser command eg firefox, opera, konqueror
then in address try
http://localhost:631/

AceofSpades19 02-22-2008 05:30 PM

Quote:

Originally Posted by aus9 (Post 3065917)
ok thanks for that, your local is the same as mine, I use wired ethernet and you have wide lan I assume.

lets go back to your cups error.

try
http://localhost:631/

http://h1.ripway.com/aus9/cups.png

then re-run ifconfig with root powers and your counts should increase.

EDIT

I mean the TX and RX should increase and have no errors

2) Can you name your firewall please and with some firewalls you can see their rulesets.

1) Yes they do increase
2) I just use the firewall provided by my D-Link wireless router, I don't think the router would affect connecting to myself though, considering I could connect to localhost:631 before

Quote:

Originally Posted by aus9 (Post 3065980)
ok while waiting I had another look at my /etc/cups/cupsd.conf

do you have these lines?
# Only listen for connections from the local machine.
Listen *:631
Listen /var/run/cups/cups.sock

then when I read authenication lines I remembered that I set mine up to allow all users, so maybe you need to
su
issue web browser command eg firefox, opera, konqueror
then in address try
http://localhost:631/

Yes, I do have those lines, except it says localhost:631, and I can't connect to it even when running a web browser as root.

aus9 02-22-2008 06:00 PM

1) good to hear you could previously connect to localhost

2) have not researched your diffenent cups file but I am interested in that you have no software firewall and have a router firewall.

I am now thinking, even tho I have a diff router, maybe you can look at those settings eg
http://h1.ripway.com/aus9/router1.png
http://h1.ripway.com/aus9/router2.png

it does not take much to close off the web browser itself, I found out. So maybe, you can re-check your settings?

3) EDIT....oops I also meant for you to look deeper into your cups file at the authentication

# Restrict access to the server...
<Location />
Allow @LOCAL
Order allow,deny
Allow localhost
</Location>

aus9 02-22-2008 06:13 PM

ok a quick look at
http://www.cups.org/documentation.ph...upsd-conf.html

can you post your full cups conf file please?

2) the other thing you could try is backup your file and use mine?
http://h1.ripway.com/aus9/cupsd.conf

but you will need to stop and restart this service

AceofSpades19 02-22-2008 06:14 PM

Quote:

Originally Posted by aus9 (Post 3066663)
1) good to hear you could previously connect to localhost

2) have not researched your diffenent cups file but I am interested in that you have no software firewall and have a router firewall.

I am now thinking, even tho I have a diff router, maybe you can look at those settings eg
http://h1.ripway.com/aus9/router1.png
http://h1.ripway.com/aus9/router2.png

it does not take much to close off the web browser itself, I found out. So maybe, you can re-check your settings?

3) EDIT....oops I also meant for you to look deeper into your cups file at the authentication

# Restrict access to the server...
<Location />
Allow @LOCAL
Order allow,deny
Allow localhost
</Location>

2) well it worked the day or a couple days before and I know for a fact that no-one touched the router settings in that span, so I don't think the router is doing anything

3)I changed it do look exactly like that and no dice

aus9 02-22-2008 06:17 PM

I have just done some edits FYI.

aus9 02-22-2008 06:19 PM

and in case you have a home network see if this helps?

http://susefaq.sourceforge.net/faq/cups.html

aus9 02-22-2008 06:21 PM

in case you have changed your hostnames try this...as other info as well

http://wiki.archlinux.org/index.php/CUPS_Setup

AceofSpades19 02-22-2008 06:42 PM

CUPS config file
Code:

#
# "$Id: cupsd.conf.in 5454 2006-04-23 21:46:38Z mike $"
#
#  Sample configuration file for the Common UNIX Printing System (CUPS)
#  scheduler.  See "man cupsd.conf" for a complete description of this
#  file.
#

# Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel info

# Administrator user group...
SystemGroup sys root

# Only listen for connections from the local machine.
Listen *:631
Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow @LOCAL

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Restrict access to the server...
<Location />
  Allow @LOCAL
  Order allow,deny
  Allow localhost
</Location>

# Restrict access to the admin pages...
<Location /admin>
  Encryption Required
  Order allow,deny
  Allow localhost
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Basic
  Require user @SYSTEM
  Order allow,deny
  Allow localhost
</Location>

# Set the default printer/job policies...
<Policy default>
  # Job-related operations must be done by the owner or an adminstrator...
  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an adminstrator to authenticate...
  <Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
    AuthType Basic
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

#
# End of "$Id: cupsd.conf.in 5454 2006-04-23 21:46:38Z mike $".
#

Ya, I have reloaded cups after changed the config file
looking at those links now

aus9 02-22-2008 10:49 PM

some more lite reading for u

http://www.linuxquestions.org/questi...53#post3035253

I know u use slack and so unlikely to use Selinux but a number of distros have similar security tools...apparmor....bastille.....so you may be growing tired of me, but did you install or config any of these beasts?

aus9 02-22-2008 11:07 PM

ok my last thoughts while I wait for any replies

Mandriva to the rescue of slack!!!
http://mandrivausers.org/lofiversion...hp/t40639.html refer last post the long one.

or second best??
http://www.linuxquestions.org/questi...317/page2.html

read the lot sorry

AceofSpades19 02-23-2008 07:30 PM

I have not installed any apparmor or SELinux or anything like that
reading those links now


All times are GMT -5. The time now is 05:16 AM.