CUPS fails to reccognize parallel port - AGAIN!

Charles Howse chowse at charter.net
Sat Jul 1 10:38:18 PDT 2006


> You only add the lines, or you also checked if there already exists lines
> which can influence the permissions?
> You can send the file to my mail address if I should check.

There were no lines in the file that were un-commented, so my 2 lines are the only things being read.

> I think you don't exactly understand file permissions. So I will

I've been using *nix systems for 4 yrs, but sometimes things get confusing.  :)  This version of CUPS is making me pull my hair out!

> What I try to explain is that only root can read/write this file. --> You have to change the permissions!

The point I was trying to make was that if I am operating as a member of the wheel group, then I should be able to read and write to files that are owned by the wheel group.
If Group wheel is set in cupsd.conf then when it needs to read or write to /dev/lpt0, I would think it would be able to, because /dev/lpt0 is owned by the wheel group.

>
>
> >> # Show shared printers on the local network.
> >> Browsing On
> >> BrowseOrder allow,deny
> >> BrowseAllow 192.168.254.3
> >> BrowseAllow @LOCAL
> >
> > Please also note that I am not seeing the printer when I try and add it on
> > my Macintosh (OS X 10.4.7).  What might be the cause for that?
>
>
> For sending browsing informations to your network you need a "BrowseAddress"
> in your cupsd.conf file.
>
> To send broadcasts to the network 192.168.254.0/24:
> BrowseAddress 192.168.254.255
>
> You can also automatically enable on all network interfaces with:
> BrowseAddress @LOCAL
>
>
> Please refer to CUPS documentation (should work for CUPS 1.2.x in the same
> way):
> http://www.cups.org/doc-1.1/sam.html#BrowseAddress

I saw an error in the error-log:
I [01/Jul/2006:11:52:52 -0500] Loaded configuration file "/usr/local/etc/cups/cupsd.conf"
N [01/Jul/2006:11:52:52 -0500] Group and SystemGroup cannot use the same groups!
I [01/Jul/2006:11:52:52 -0500] Resetting Group to "nobody"...

I commented "SystemGroup wheel", still not seeing printer in Mac printer browser.
I currently have the following in cupsd.conf:

#
# "$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 wheel

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

# Group for executing external commands
Group wheel

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

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

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

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

# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Basic
  Require user @SYSTEM
  Order allow,deny
  Allow 192.168.254.3
  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-Subscr
    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-Ne
    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 $".
#







More information about the cups mailing list