Showing results for cups remote access windows
Search instead for cups remoote access windows
AI-generated answer. Please verify critical facts.

What I would do is at the following block below the </Policy> tag:

<Location />
    Order allow,deny
    Allow localhost
    Allow from 192.168.0.*
    Allow from 10.0.*.*
</Location>

Listen 0.0.0.0:631

For admin access specifically, the vanilla config normally has:

<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
</Location>

In order to create a suitable user account, you just need to create a user that is a member of the lpadmin group (I would recommend you do require some kind auth for the admin section): sudo useradd -g lpadmin cupsadmin, then set a password.

See also https://askubuntu.com/questions/387217/cups-admin-user-and-password-saucy

Update: The below should work as a starting point to also happens to fix the issue originally raise by @DavidGatti - it isn't as complete/granular as the original config, but the policy config can be re-added.

This config does however do away with using @SYSTEM user, and instead will accept any 'local', valid user. The use-case for the config is running CUPS in a docker container, so it seemed best to avoid requiring anything 'special', beyond a user with a password, to provide admin access to CUPS.

# Disable cups internal logging - use logrotate instead
MaxLogSize 0

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

Listen /run/cups/cups.sock
Listen 0.0.0.0:631
Port 631

# Show shared printers on the local network.
Browsing On
BrowseLocalProtocols dnssd

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

# Web interface setting...
WebInterface Yes

# Restrict access to the server...
# This config allow anyone access to the WUI
<Location />
  Order allow,deny
  Allow all
</Location>

# Restrict access to the admin pages...
# Allows anyone to try and access admin pages.
# Any local user's credentials will be accepted
<Location /admin>
  AuthType Basic
  Require valid-user
  Allow all
  Order allow,deny
</Location>

# Restrict access to configuration files...
# Any local user's credentials will be accepted
<Location /admin/conf>
  AuthType Basic
  Require valid-user
  Allow all
  Order allow,deny
</Location>

# Restrict access to log files...
# Any local user's credentials will be accepted
<Location /admin/log>
  AuthType Basic
  Require valid-user
  Allow all
  Order allow,deny
</Location>

Browsing On

You might also find some decent pointers in How to configure cups to allow remote printing with authentication and local printing without?

Answer from iwaseatenbyagrue on serverfault.com
Top answer
1 of 4
14

What I would do is at the following block below the </Policy> tag:

<Location />
    Order allow,deny
    Allow localhost
    Allow from 192.168.0.*
    Allow from 10.0.*.*
</Location>

Listen 0.0.0.0:631

For admin access specifically, the vanilla config normally has:

<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
</Location>

In order to create a suitable user account, you just need to create a user that is a member of the lpadmin group (I would recommend you do require some kind auth for the admin section): sudo useradd -g lpadmin cupsadmin, then set a password.

See also https://askubuntu.com/questions/387217/cups-admin-user-and-password-saucy

Update: The below should work as a starting point to also happens to fix the issue originally raise by @DavidGatti - it isn't as complete/granular as the original config, but the policy config can be re-added.

This config does however do away with using @SYSTEM user, and instead will accept any 'local', valid user. The use-case for the config is running CUPS in a docker container, so it seemed best to avoid requiring anything 'special', beyond a user with a password, to provide admin access to CUPS.

# Disable cups internal logging - use logrotate instead
MaxLogSize 0

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

Listen /run/cups/cups.sock
Listen 0.0.0.0:631
Port 631

# Show shared printers on the local network.
Browsing On
BrowseLocalProtocols dnssd

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

# Web interface setting...
WebInterface Yes

# Restrict access to the server...
# This config allow anyone access to the WUI
<Location />
  Order allow,deny
  Allow all
</Location>

# Restrict access to the admin pages...
# Allows anyone to try and access admin pages.
# Any local user's credentials will be accepted
<Location /admin>
  AuthType Basic
  Require valid-user
  Allow all
  Order allow,deny
</Location>

# Restrict access to configuration files...
# Any local user's credentials will be accepted
<Location /admin/conf>
  AuthType Basic
  Require valid-user
  Allow all
  Order allow,deny
</Location>

# Restrict access to log files...
# Any local user's credentials will be accepted
<Location /admin/log>
  AuthType Basic
  Require valid-user
  Allow all
  Order allow,deny
</Location>

Browsing On

You might also find some decent pointers in How to configure cups to allow remote printing with authentication and local printing without?

2 of 4
18

If you need quick fix, without technical details, use this command

sudo cupsctl --remote-any
sudo /etc/init.d/cups restart
🌐
ArchWiki
https://wiki.archlinux.org › title › CUPS › Printer_sharing
CUPS/Printer sharing - ArchWiki
October 23, 2023 - Samba is an implementation of the Windows file and printer sharing protocols, even the most vintage ones.
🌐
Wordpress
https://injustfiveminutes.wordpress.com › 2013 › 11 › 07 › remote-access-to-cups-admin-inter
Remote access to CUPS admin interface | In just five minutes…
November 7, 2013 - …localhost by going to https://localhost:631. But to access this page from another remote machine, you need to first make some edits to the cups conf file.
People also ask

Is the CUPS web interface secure?
The CUPS web interface is secure provided it remains restricted to 'localhost' or your internal local network.
🌐
apexknowledge.blog
apexknowledge.blog › open-cups-web-interface
How Do I Open the CUPS Web Interface [Enable & Fix Access] - ...
Does this work on Windows?
No, the CUPS web interface is exclusive to Unix-like operating systems such as macOS and various Linux distributions.
🌐
apexknowledge.blog
apexknowledge.blog › open-cups-web-interface
How Do I Open the CUPS Web Interface [Enable & Fix Access] - ...
Why do I get a 403 Forbidden error?
A 403 Forbidden error usually occurs because your user account lacks administrative privileges or the 'cupsd.conf' configuration file restricts your specific IP address.
🌐
apexknowledge.blog
apexknowledge.blog › open-cups-web-interface
How Do I Open the CUPS Web Interface [Enable & Fix Access] - ...
🌐
Janne's Tech Blog
https://techblog.paalijarvi.fi › 2020 › 05 › 25 › making-windows-10-to-print-to-a-cups-printer-over-the-network
Making Windows 10 to print to a CUPS printer over the network – Janne's Tech Blog
May 25, 2020 - Restart cups for settings to take effect. Next, on your Windows 10 machine navigate to your cups host, for example http://172.16.8.164:631/printers .
🌐
OneUptime
https://oneuptime.com › home › blog › how to share a cups printer with windows and macos clients from rhel
How to Share a CUPS Printer with Windows and macOS Clients from RHEL
March 4, 2026 - A RHEL CUPS print server can share printers with Windows, macOS, and other Linux clients. … Windows clients can connect via IPP or Samba.
🌐
Austinjadams
https://austinjadams.com › blog › using-a-remote-cups-printer-from-windows-and-gnu-linux
Using a Remote CUPS Printer from Windows and GNU/Linux « Blog « Austin Adams
August 21, 2016 - To allow other machines to reach the CUPS server hosting the printer, /etc/cups/cupsd.conf needs some modifications. First, to tell CUPS not to bind on localhost, change ...
🌐
CUPS
https://cups.org › doc › security.html
Server Security
the CUPS server does not accept remote connections, and only accepts shared printer information from the local subnet.
Find elsewhere
🌐
Apexknowledge
https://apexknowledge.blog › open-cups-web-interface
How Do I Open the CUPS Web Interface [Enable & Fix Access] - ApexKnowledge.blog
June 1, 2026 - Type http://localhost:631 into any web browser address bar to access the local CUPS management dashboard.
🌐
LinuxQuestions.org
https://linuxquestions.org › questions › linux-server-73 › accessing-cups-gui-remotely-4175655077
Accessing CUPS GUI Remotely?
…online that stated I should comment out: Code: and just replace that with Code: However, that didn't appear to work.
🌐
The Geek Stuff
https://thegeekstuff.com › 2016 › 02 › cups-admin-ui-access
How to Setup CUPS Printer Admin Web GUI for Remote Access
February 15, 2016 - …from your browser from the following location: https://hostname-or-ipaddress:631/admin To configure this URL, you must do the following changes on your /etc/cups/cupsd.conf Modify the cupsd.conf…
🌐
CUPS
https://cups.org › doc › sharing.html
Printer Sharing
When printing to legacy print servers you may also use the Line Printer Daemon (LPD) protocol when printing to older UNIX-based servers or Server Message Block (SMB) when printing to Windows® servers.
🌐
OneUptime
https://oneuptime.com › home › blog › how to set up a print server (cups) on ubuntu
How to Set Up a Print Server (CUPS) on Ubuntu
January 15, 2026 - Windows Client Setup: Enter: http://print-server-ip:631/printers/PrinterName · Windows will download the driver automatically (for IPP Everywhere printers)
🌐
Scosales
https://scosales.com › ta › kb › 127623.html
How to remotely access the Web interface of CUPS on Port 631?
The NT server local policy prevents AFPS users from accessing the domain. Will the AFPS Server Tools install and work on an NT 4.0 workstation?
🌐
Blogger
http://thismightbehelpful.blogspot.com › 2008 › 09 › remote-access-to-cups-web-interface.html
This Might be Helpful: Remote Access to CUPS Web Interface
September 16, 2008 - Your first edit to the file is to make the section that looks like: Only listen for connections from the local machine. Listen localhost:631 Listen /var/run/cups/cups.sock
🌐
Project-insanity
https://project-insanity.org › 2022 › 11 › 01 › use-cups-printing-server-on-windows-10
Use CUPS printing server on Windows 10 – project-insanity.org
November 1, 2022 - CUPS server will be accessible on http://localhost:631 · Now we open the Windows task scheduler and create a new startup task for Windows to run the WSL2…
🌐
Njae
https://njae.me.uk › CUPS_server_setup
CUPS server setup - Smith family
Allow network printing: Allow remote administration · Allow users to cancel any job (not just their own) Do that on both machines, and you'll be able to access either printer from either machine.
🌐
FreeBSD
https://docs.freebsd.org › en › articles › cups
CUPS on FreeBSD | FreeBSD Documentation Portal
As a result, CUPS is ideally-suited for sharing and accessing printers in mixed environments of FreeBSD, Linux®, Mac OS® X, or Windows®.