无法更改 CUPS 密码

无法更改 CUPS 密码

我正在运行基于 Debian 6 的 CrunchBang。我无法执行任何与打印机相关的操作。它说我未经身份验证。我努力了:

family@familydesktop:~$ sudo lppasswd -a family
Enter password:
Enter password again:
family@familydesktop:~$ sudo lppasswd -a root
Enter password:
Enter password again:

但我仍然无法添加打印机。我该怎么办?

答案1

您很可能不允许某些类型的访问您的 CUPS 守护程序。查看故障排除指南:

例如

您需要这样的条目才能开始:

# /etc/cups/cupsd.conf
# Default authentication type, when authentication is required...
DefaultAuthType Basic
DefaultEncryption Never # comment this line to allow encryption

# Allow access to the server from any machine on the LAN
<Location />
  Order allow,deny
  #Allow localhost
  Allow 192.168.1.* # change to local LAN settings
</Location>

您可能还需要在此文件中授予其他权限。

答案2

尝试将自己添加到 lp 或 lpadmin 组(以存在的为准)或检查 visudo 的打印/CUPS 相关设置。

相关内容