You are not logged in.

#1 2011-07-01 17:11:46

Farsk1
Member
From: Norway
Registered: 2010-08-14
Posts: 15

[SOLVED]Mysterious cupsd problem.

I'm currently configuring a cups server running on a archbox in the basement. Doing this over SSH.

I've followed the wiki-article on cups point-by-point, the configuration seems right, and I have experience with setting up other cups servers.

Whenever I start the daemon, as root i get this error:

[root@AcerAspire ~]# /etc/rc.d/cups start
:: Starting cupsd daemon                                                                                                 [BUSY]
2011 Jul  1 18:56:37 localhost Unable to read configuration file '/etc/cups/cupsd.conf' - exiting!
cupsd: Child exited with status 1!
                                                                                                                                           [FAIL]

My /etc/cups/cupsd.conf looks like this:

#
# "$Id: cupsd.conf.in 9310 2010-09-21 22:34:57Z mike $"
#
# Sample configuration file for the CUPS scheduler.  See "man cupsd.conf" for a
# complete description of this file.
#

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

# Administrator user group...
SystemGroup sys root


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

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

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

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

# Restrict access to the admin pages...
<Location /admin>
  Order allow,deny
  Allow From 192.168.1.1/255.255.255.0
</Location>

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

# Set the default printer/job policies...
<Policy default>
  # Job-related operations must be done by the owner or an administrator...
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    Order deny,allow
  </Limit>

  <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-$
    Require user @OWNER @SYSTEM
    Order deny,allow
  </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 Sc$
    AuthType Default
    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>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

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

#
# End of "$Id: cupsd.conf.in 9310 2010-09-21 22:34:57Z mike $".
#

And a "ls -l" of the folder looks like this:

[root@AcerAspire cups]# ls -l
total 36
-rw------- 1 root lp    0 Jun 17 21:41 classes.conf
-rw-r--r-- 1 root lp  135 Jun 17 21:41 client.conf
-rw-r----- 1 root lp 4256 Jul  1 18:57 cupsd.conf
-rw-r----- 1 root lp 4151 Jun 17 21:41 cupsd.conf.default
drwxr-xr-x 2 root lp 4096 Jun 17 21:41 interfaces
drwxr-xr-x 2 root lp 4096 Jun 17 21:41 ppd
-rw------- 1 root lp    0 Jun 17 21:41 printers.conf
-rw-r----- 1 root lp  186 Jun 17 21:41 snmp.conf
drwx------ 2 root lp 4096 Jun 17 21:41 ssl
-rw-r--r-- 1 root lp    0 Jun 17 21:41 subscriptions.conf

Any ideas on how to fix this? Have been searching around for a while.

Last edited by Farsk1 (2011-07-01 21:13:06)

Offline

#2 2011-07-01 20:28:00

Farsk1
Member
From: Norway
Registered: 2010-08-14
Posts: 15

Re: [SOLVED]Mysterious cupsd problem.

Well I found a solution to my problem seems like there is something in the wiki, atleast when applied to this version of cups.

If you set:

Allow from 192.168.1.1/255.255.255.0"

You only allow 192.168.1.1 to connect or access the server, not the 192.168.1.*-range as stated in the wiki.

My solution to this was to change the above to:

Allow from 192.168.1.*

Check out [LINK]www.cups.org[/LINK] if you need more.

Offline

#3 2011-07-01 20:36:20

lifeafter2am
Member
From: 127.0.0.1
Registered: 2009-06-10
Posts: 1,332

Re: [SOLVED]Mysterious cupsd problem.

Farsk1 wrote:

Well I found a solution to my problem seems like there is something in the wiki, atleast when applied to this version of cups.

If you set:

Allow from 192.168.1.1/255.255.255.0"

You only allow 192.168.1.1 to connect or access the server, not the 192.168.1.*-range as stated in the wiki.

My solution to this was to change the above to:

Allow from 192.168.1.*

Check out [LINK]www.cups.org[/LINK] if you need more.

Where does it say that in the Wiki?  I see it mention 192.168.1.0, which would give you the whole subrange.

Only asking because I was going to change it but couldn't find it.  smile


#binarii @ irc.binarii.net
Matrix Server: https://matrix.binarii.net
-------------
Allan -> ArchBang is not supported because it is stupid.

Offline

#4 2011-07-01 21:00:53

Farsk1
Member
From: Norway
Registered: 2010-08-14
Posts: 15

Re: [SOLVED]Mysterious cupsd problem.

lifeafter2am wrote:

Where does it say that in the Wiki?  I see it mention 192.168.1.0, which would give you the whole subrange.

Only asking because I was going to change it but couldn't find it.  smile

Aw dang,  Must have read it wrong. Sure it makes sense now that i read it.

My error is now painly obvious.

Problem solved. Thanks.

Offline

#5 2011-07-01 21:02:35

lifeafter2am
Member
From: 127.0.0.1
Registered: 2009-06-10
Posts: 1,332

Re: [SOLVED]Mysterious cupsd problem.

No problem!  Remember to mark your topic as solved.  wink


#binarii @ irc.binarii.net
Matrix Server: https://matrix.binarii.net
-------------
Allan -> ArchBang is not supported because it is stupid.

Offline

Board footer

Powered by FluxBB