LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 02-22-2008, 05:15 AM   #16
aus9
Guru
 
Registered: Oct 2003
Posts: 5,055

Rep: Reputation: Disabled

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/
 
Old 02-22-2008, 05:30 PM   #17
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by aus9 View Post
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 View Post
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.
 
Old 02-22-2008, 06:00 PM   #18
aus9
Guru
 
Registered: Oct 2003
Posts: 5,055

Rep: Reputation: Disabled
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>

Last edited by aus9; 02-22-2008 at 06:04 PM.
 
Old 02-22-2008, 06:13 PM   #19
aus9
Guru
 
Registered: Oct 2003
Posts: 5,055

Rep: Reputation: Disabled
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

Last edited by aus9; 02-22-2008 at 06:15 PM.
 
Old 02-22-2008, 06:14 PM   #20
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by aus9 View Post
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
 
Old 02-22-2008, 06:17 PM   #21
aus9
Guru
 
Registered: Oct 2003
Posts: 5,055

Rep: Reputation: Disabled
I have just done some edits FYI.
 
Old 02-22-2008, 06:19 PM   #22
aus9
Guru
 
Registered: Oct 2003
Posts: 5,055

Rep: Reputation: Disabled
and in case you have a home network see if this helps?

http://susefaq.sourceforge.net/faq/cups.html
 
Old 02-22-2008, 06:21 PM   #23
aus9
Guru
 
Registered: Oct 2003
Posts: 5,055

Rep: Reputation: Disabled
in case you have changed your hostnames try this...as other info as well

http://wiki.archlinux.org/index.php/CUPS_Setup
 
Old 02-22-2008, 06:42 PM   #24
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Original Poster
Rep: Reputation: 57
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
 
Old 02-22-2008, 10:49 PM   #25
aus9
Guru
 
Registered: Oct 2003
Posts: 5,055

Rep: Reputation: Disabled
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?
 
Old 02-22-2008, 11:07 PM   #26
aus9
Guru
 
Registered: Oct 2003
Posts: 5,055

Rep: Reputation: Disabled
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
 
Old 02-23-2008, 07:30 PM   #27
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Original Poster
Rep: Reputation: 57
I have not installed any apparmor or SELinux or anything like that
reading those links now
 
  


Reply

Tags
cups, printer, slackware


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Suse CUPS error: cups(File)DoRequest error:client-error-bad-request smdonelan Linux - Hardware 6 04-17-2007 06:46 PM
cups error: "error-client-not-possible MAGOVIA Linux - Newbie 4 06-18-2005 11:44 PM
cups Error "CUPS daemon has died" susesarus Linux - Software 2 08-21-2004 03:43 PM
Slackware 9 and CUPS (CUPS=crap) - printing carboncopy Slackware 21 07-29-2003 03:27 PM
cups and slackware 9 deNiro Slackware 6 07-07-2003 12:31 AM


All times are GMT -5. The time now is 09:38 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration