Webインターフェイスを使用してCUPSサーバーを設定しました。残念ながら、次の手順ではプリンタを追加できません。
- ブラウザ(REMOTE_SERVER_IP:631)
- 管理タブ
- ローカルプリンタ
- HPプリンター(HPLIP)
- つながる
- プリンタの追加(名前とすべての有用な情報)
- モデルを選択してください
- ドライバーの選択
- 間違い
この時点で、次のメッセージが届きましたUnable to add printer: Unauthorized
。私の設定ファイルは次のとおりです。
# 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
BrowseAddress *.*.*.*:631
BrowseAllow all
# Show shared printers on the local network.
Browsing On
BrowseLocalProtocols all
# Default authentication type, when authentication is required...
DefaultAuthType None
# Web interface setting...
WebInterface Yes
# Restrict access to the server...
<Location />
Order allow,deny
Allow All
</Location>
# Restrict access to the admin pages...
<Location /admin>
Order allow,deny
Allow All
</Location>
# Restrict access to configuration files...
<Location /admin/conf>
Order allow,deny
Allow All
</Location>
# Restrict access to log files...
<Location /admin/log>
Order allow,deny
Allow All
</Location>
私は以下を使用していますドッカーファイルすべてを構築し始めます。また、画像に新しいユーザーを提供しました。
私は何を見逃していますか?
ベストアンサー1
タスク権限も追加する必要があります。
<Policy default>
<Limit All>
Order allow,deny
Allow all
</Limit>
</Policy>
Allow @LOCAL
私の設定では代わりに使用するので、Allow all
すべてのローカル接続を許可しますが、要件は異なる場合があります。
これらLocation
の設定は再帰的で十分です。
<Location />
Order allow,deny
Allow all
</Location>
他のすべてのパス(/adminなど)が含まれます。