
Ubuntu日本語フォーラム
ログインしていません。
CUPSについて質問したいです。
ubuntu20.04 に cups をインストールし、ファイウォール変更等、必要な処置を行ったハズですが、下記エラーで表示できません
Forbidden
You cannot access this page.
lsof, ufw status 等で確認しても ポート631は開いており、cupsd.conf も 外部からの接続を許可するように記述を変更しています
lsof -i -P | grep -i 631
cupsd 1054 root 6u IPv4 27134 0t0 TCP *:631 (LISTEN)
cupsd 1054 root 7u IPv6 27135 0t0 TCP *:631 (LISTEN)
cups-brow 1310 root 7u IPv4 27245 0t0 UDP *:631
ufw stus
To Action From
-- ------ ----
CUPS ALLOW Anywhere
cupsd.conf
# Only listen for connections from the local machine.
Port 631 <---- Listen *:631 にしても表示されず
Listen /run/cups/cups.sock
# Show shared printers on the local network.
Browsing Off
BrowseLocalProtocols dnssd
# Default authentication type, when authentication is required...
DefaultAuthType Basic
# Web interface setting...
WebInterface Yes
# Restrict access to the server...
<Location />
Order allow,deny
Allow From all <---- 追記
</Location>
# Restrict access to the admin pages...
<Location /admin>
Order allow,deny
Allow From all <---- 追記
</Location>
dmesg で確認すると下記の監査ログが出ており、この影響で表示できなくなっているのでしょうか? それともまだ設定を変更する箇所があるんでしょうか
audit: type=1400 audit(1621172338.661:38): apparmor="DENIED" operation="capable" profile="/usr/sbin/cups-browsed" pid=1310 comm="cups-browsed" capability=23 capname="sys_nice"
また、上記メッセージをググるとバグっぽい記事に行きつきましたが、機械翻訳だと意味が今一よくわからない;;
解決策などがあればご教授願います。
オフライン
解決しました
cupsd.conf 内の Browsing Off が原因のようでした。
Browsing on にして、 cups リスタートしたら web 画面が表示されるようになりました。
オフライン