LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-03-2008, 03:24 PM   #1
Tobas
LQ Newbie
 
Registered: Dec 2003
Posts: 16

Rep: Reputation: 0
Printer share on Slackware 12.1 ( cups issue )


Hi there,

I am trying to share my Lexmark printer which is connected to my Slackware 12.1 server.

Everything works fine when i print test pages from my Slackbox, but i cant print from my vista and xp pc's.

I have tried several how-to's but nothing worked for me

problem :

pinter prints on slackware, but not from my other pc's

this is my cupsd.conf

Code:
#
# "$Id: cupsd.conf.in 7199 2008-01-08 00:16:30Z 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 debug

# Administrator user group...
SystemGroup sys root lp


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

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

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

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

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

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

# Set the default printer/job policies...
<Policy default>
  # Job-related operations must be done by the owner or an administrator...
  <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
    Allow all
  </Limit>

  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <Limit Pause-Printer Resume-Printer 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-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
    Allow all
  </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
    Allow all
  </Limit>

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

#
# End of "$Id: cupsd.conf.in 7199 2008-01-08 00:16:30Z mike $".
#

and this is my error log :

Code:
D [03/Jun/2008:22:22:11 +0200] cupsdAcceptClient: 6 from localhost (Domain)
D [03/Jun/2008:22:22:11 +0200] cupsdReadClient: 6 POST / HTTP/1.1
D [03/Jun/2008:22:22:11 +0200] cupsdAuthorize: No authentication data provided.
D [03/Jun/2008:22:22:11 +0200] Get-Printer-Attributes ipp:///printers/LexmarkZ65
D [03/Jun/2008:22:22:11 +0200] cupsdProcessIPPRequest: 6 status_code=0 (successful-ok)
D [03/Jun/2008:22:22:11 +0200] cupsdCloseClient: 6
D [03/Jun/2008:22:22:11 +0200] cupsdAcceptClient: 6 from localhost (Domain)
D [03/Jun/2008:22:22:11 +0200] cupsdReadClient: 6 POST / HTTP/1.1
D [03/Jun/2008:22:22:11 +0200] cupsdAuthorize: No authentication data provided.
D [03/Jun/2008:22:22:11 +0200] Get-Printer-Attributes ipp:///printers/LexmarkZ65
D [03/Jun/2008:22:22:11 +0200] cupsdProcessIPPRequest: 6 status_code=0 (successful-ok)
D [03/Jun/2008:22:22:11 +0200] cupsdCloseClient: 6
D [03/Jun/2008:22:22:12 +0200] cupsdAcceptClient: 6 from localhost:631 (IPv4)
D [03/Jun/2008:22:22:12 +0200] cupsdReadClient: 6 GET /admin/log/error_log HTTP/1.1
D [03/Jun/2008:22:22:12 +0200] cupsdAuthorize: Authorized as tobas using Basic
i hope someone can help me


Tobas
 
Old 06-03-2008, 03:52 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Hi!

These lines stand out in your cupsd.conf:
Code:
# Only listen for connections from the local machine.
Listen localhost:631
They indicate that your CUPS server will not be available on your network - it only processes print jobs that come from localhost (127.0.0.1).

Try to change the "Listen localhost:631" to
Code:
Port 631
and restart your cups server.

BTW: If you want the Slackware crowd to see your questions, post your next one in the Slackware forum instead. We're generally quite knowledgeable and you may get better exposure there than in the Network forum.

Eric
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cant share printer with cups The slayer Ubuntu 2 11-25-2007 07:58 AM
CUPS printer will not share to windows client - printer does not have correct drivers Hotchips Linux - Server 2 07-22-2007 02:56 AM
Do you need more than CUPS to share printer? Akhran Linux - Newbie 4 02-14-2006 09:05 AM
Virtual Printer / CUPS-PDF Printer Issue in SuSE 10 jlstratton42 SUSE / openSUSE 0 12-21-2005 11:04 AM
printer share permissions under CUPS in fedora mlu Linux - Networking 1 03-20-2005 05:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:00 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration