LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-11-2012, 01:43 PM   #1
ted_chou12
Member
 
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 431
Blog Entries: 35

Rep: Reputation: 3
unable to access gui of cups using ip


Hi, I am unable to access the web interface of cups by ip:
192.168.1.12:631, it says that the connection has timed out.
but when I access the web interface by localhost:
localhost:631, it loads perfectly.
Here is the /etc/cups/cupsd.conf:
Code:
LogLevel warn
SystemGroup sys root
# Allow remote access
Port 631
Browsing On
BrowseOrder allow
BrowseAllow all
BrowseRemoteProtocols CUPS
BrowseAddress @LOCAL
BrowseLocalProtocols CUPS
DefaultAuthType Basic
<Location />
  # Allow remote administration...
  Order allow,deny
  Allow from all
</Location>
<Location /admin>
  # Allow remote administration...
  Order allow,deny
  Allow from all
</Location>
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  # Allow remote access to the configuration files...
  Order allow,deny
  Allow from all
</Location>
<Policy default>
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    Order allow
    Allow from All
  </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-Job CUPS-Move-Job CUPS-Get-Document>
    Require user @OWNER @SYSTEM
    Order allow
    Allow from all
  </Limit>
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
    AuthType Default
    Require user @SYSTEM
    Order allow
    Allow from all
  </Limit>
  <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 allow
    Allow from all
  </Limit>
  <Limit CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order allow
    Allow from all
  </Limit>
  <Limit All>
    Order allow
    Allow from all
  </Limit>
</Policy>
<Policy authenticated>
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    AuthType Default
    Order allow
    Allow from all
  </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-Job CUPS-Move-Job CUPS-Get-Document>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order allow
    Allow from all
  </Limit>
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order allow
    Allow from all
  </Limit>
  <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 allow
    Allow from all
  </Limit>
  <Limit Cancel-Job CUPS-Authenticate-Job>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order allow
    Allow from all
  </Limit>
  <Limit All>
    Order allow
    Allow from All
  </Limit>
</Policy>
BrowseWebIF Yes
errorlog is here:
Code:
E [02/Jan/2003:00:00:56 +0800] Unable to open listen socket for address :::631 - Address family not supported by protocol.
E [02/Jan/2003:00:00:56 +0800] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
E [02/Jan/2003:00:24:32 +0800] Unable to open listen socket for address :::631 - Address family not supported by protocol.
E [02/Jan/2003:00:25:28 +0800] Unable to open listen socket for address :::631 - Address family not supported by protocol.
E [12/Aug/2012:02:40:58 +0800] Unable to open listen socket for address :::631 - Address family not supported by protocol.
E [12/Aug/2012:02:40:58 +0800] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
E [12/Aug/2012:02:44:58 +0800] Unable to open listen socket for address :::631 - Address family not supported by protocol.
Thanks

Last edited by ted_chou12; 08-11-2012 at 01:46 PM.
 
Old 08-11-2012, 04:06 PM   #2
ted_chou12
Member
 
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 431

Original Poster
Blog Entries: 35

Rep: Reputation: 3
After some trials and errors and several restarting I cannot even start cupsd:
Code:
root:# /etc/rc.d/init.d/cups start
cupsd: Child exited on signal 6!
cups: unable to start scheduler.
Thanks,
Ted
 
Old 08-11-2012, 04:16 PM   #3
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
As a starting point, let's get back to where you were in post #1. (Whatever changes you made, roll them back.) If you're not able to get there, then please post the latest messages in your error log.

If/when you're able to get cupsd started again, it would be helpful if you posted output from:
Code:
$ netstat -ltn
Also, what OS/version is this?
 
1 members found this post helpful.
Old 08-11-2012, 04:18 PM   #4
ted_chou12
Member
 
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 431

Original Poster
Blog Entries: 35

Rep: Reputation: 3
I got it working! Sorry for the spam, I guess I am just trying very hard. ALthough the ACL problem still exists, but anyways,
Code:
SystemGroup sys root
should be:
SystemGroup wheel
It's suppose to be a group not a single user, there is the problem. Another problem is opening the port, see the other thread i posted as well.
Thanks for lending me the space though, I hope someone finds these posts useful.
Ted

---------- Post added 08-11-12 at 04:19 PM ----------

Thanks @anomie.
Ted
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to get the Gui,Dell Vostro 1310,unable to get the Gui after installing RHEL 5 getasif Linux - Laptop and Netbook 1 09-06-2009 05:46 PM
kdeprint unable to access cups backends Moonpanther Linux - Software 4 08-20-2008 09:50 AM
Can't print or access CUPS GUI PhilTR Linux - Server 5 07-07-2007 09:19 AM
CUPS installed in Gentoo but unable to access web admin tool darin3200 Linux - Software 4 12-26-2003 10:57 PM
unable to access GUI alcopanth Linux - Newbie 5 11-02-2003 02:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:04 PM.

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