Cups + hp1010 was successfully tested on Ubuntu7.10Server

Source: Internet
Author: User
The cups + hp1010 -- Linux Enterprise Application-Linux server application information was successfully tested on Ubuntu7.10Server. The following is a detailed description. We finally successfully tested cups + hp1010 on Ubuntu7.10Server.

Note the following:

After Ubuntu is installed by default, the system imposes security restrictions on the CUPS system, mainly including the following:

1. You cannot perform Web management on CUPS through http: // localhost: 631/admin;

2. You cannot access the local http: // localhost: 631 through the Web interface on other machines to view the print status;

3. the printer of the local machine cannot be shared through IPP protocol on other machines.

For the above three questions, you can make different settings as needed:
1. The reason for this restriction is very simple. Because the cupsys user does not have the permission to access the/etc/shadow file, it cannot identify the authenticity of the user. To solve this problem, it is very simple, you only need to add the user to the passwd group. The command is as follows:

$ Sudo adduser cupsys shadow

In addition, the lpadmin group has the permission to manage printers. To set up a user with the permission to manage the CUPS system, you only need to add the user to the lpadmin group, if the print administrator is firehare, you only need the following command:

$ Sudo adduser firehare lpadmin

Enter
$ Sudo/etc/init. d/cupsys force-reload

Next, try entering http: // localhost: 631/admin in Firefox, and then entering the user and password in the superuser or lpadmin group to enter the management interface.

The following is my/etc/cups. conf configuration file.
#
#
# Sample configuration file for the Common UNIX Printing System (CUPS)
# Schedpsd. See "man cupsd. conf" for a complete description of this
# File.
#

# Log general information in error_log-change "info" to "debug"
# Troubleshooting...
LogLevel warning

# Administrator user group...
SystemGroup lpadmin

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

# Show shared printers on the local network.
Browsing Off
BrowseOrder allow, deny
BrowseAllow @ LOCAL
BrowseAddress @ LOCAL

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

# Restrict access to the server...

Order allow, deny
Allow 192.168.1.110
Allow @ LOCAL


# Restrict access to the admin pages...

Order allow, deny
Allow 192.168.1.110


# Restrict access to configuration files...

AuthType Basic
Require user @ SYSTEM
Order allow, deny
Allow 192.168.1.110


# Set the default printer/job policies...

# Job-related operations must be done by the owner or an adminstrator...

Require user @ OWNER @ SYSTEM
Order deny, allow


# All administration operations require an adminstrator to authenticate...

AuthType Basic
Require user @ SYSTEM
Order deny, allow


# Only the owner or an administrator can cancel or authenticate a job...

Require user @ OWNER @ SYSTEM
Order deny, allow



Order deny, allow



#
#

#
# Printcap: the name of the printcap file. Default is/etc/printcap.
# Leave blank to disable printcap file generation.
#

Printcap/var/run/cups/printcap

#
# PrintcapFormat: the format of the printcap file, currently either
# BSD or Solaris. The default is "BSD ".
#

# PrintcapFormat BSD
# PrintcapFormat Solaris

#
# PrintcapGUI: the name of the GUI options panel program to associate
# With print queues under IRIX. The default is "/usr/bin/glpoptions"
# From ESP Print Pro.
#
# This option is only used under IRIX; the options panel program
# Must accept the "-d printer" and "-o options" options and write
# The selected printer options back to stdout on completion.
#

# PrintcapGUI/usr/bin/glpoptions

I only allow machines at 192.168.1.110 to manage this cups.

Oh, it's that simple.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.