You are not logged in.
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
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
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.
#binarii @ irc.binarii.net
Matrix Server: https://matrix.binarii.net
-------------
Allan -> ArchBang is not supported because it is stupid.
Offline
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.
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
No problem! Remember to mark your topic as solved.
#binarii @ irc.binarii.net
Matrix Server: https://matrix.binarii.net
-------------
Allan -> ArchBang is not supported because it is stupid.
Offline