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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-11-2012, 01:43 PM
|
#1
|
Member
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 431
Rep:
|
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.
|
|
|
08-11-2012, 04:06 PM
|
#2
|
Member
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 431
Original Poster
Rep:
|
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
|
|
|
08-11-2012, 04:16 PM
|
#3
|
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Rep: 
|
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:
Also, what OS/version is this?
|
|
1 members found this post helpful.
|
08-11-2012, 04:18 PM
|
#4
|
Member
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 431
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 02:04 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|