Portál AbcLinuxu, 11. listopadu 2025 06:12
. Pouzivam xubuntu, kde nativne nic nainstalovano neni.
Z repozitare jsem si doinstaloval printconf, ktery ovsem nefunguje, chybova hlaska je:
*** glibc detected *** double free or corruption (!prev): 0x0816e838 *** Unable to read printer database. Please ensure the "foomatic-db" package is installed properly.
Stejnou chybovou hlasku hlasi i aplikace foomatic-gui, kterou jsem taky zkusil.
Balicek foomatic-db mam nainstalovany a zkusil jsem ho i reinstalovat (pomoci apt-get), ale chybova hlaska zustava stejna.
Nenapada vas nekoho neco?
E [31/Jul/2006:16:37:53 +0200] CUPS-Add-Modify-Printer: Unauthorized
E [31/Jul/2006:16:38:31 +0200] cupsdAuthorize: pam_authenticate() returned 7 (Authentication failure)!
PS: urcite jsem zadaval hesla spravne (zkousel jsem vickrat...
BrowseOrder allow,deny
BrowseAllow @LOCAL
BrowseAddress @LOCAL
# Default authentication type, when authentication is required...
DefaultAuthType Basic
# Restrict access to the server...
Location
Order allow,deny
Allow localhost
Allow @LOCAL
/Location
# Restrict access to the admin pages...
Location /admin
Order allow,deny
Allow localhost
/Location
# Restrict access to configuration files...
Location /admin/conf
AuthType Basic
Require user @SYSTEM
Order allow,deny
Allow localhost
/Location
# Set the default printer/job policies...
Policy default
# Job-related operations must be done by the owner or an adminstrator...
Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
Require user @OWNER @SYSTEM
Order deny,allow
/Limit
# All administration operations require an adminstrator to authenticate...
Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default
AuthType Basic
Require user @SYSTEM
Order deny,allow
Limit
# Only the owner or an administrator can cancel or authenticate a job...
Limit Cancel-Job CUPS-Authenticate-Job
Require user @OWNER @SYSTEM
Order deny,allow
Limit
Limit All
Order deny,allow
/Limit
/Policy
# Include files in /etc/cups/conf.d
Include /etc/cups/cups.d/ports.conf
Include /etc/cups/cups.d/browse.conf
Ale predpokladam, ze kdyz se budu hlasit jako root tak by to melo byt uplne jedno...
deb http://ftp.cz.debian.org/debian jessie main contrib non-free
Netusite nekdo?
CUPS will ask you for a UNIX username and password when you perform printer administration tasks remotely or via a web browser. The default configuration requires that you use the root username and the corresponding password to authenticate the request.
To resi jen kdyz uzivatel nema k dispozici rootovske heslo, coz ja mam, ale cups to ignoruje. No a na tech forech, tak z toho nejsem moc moudrej (moje anglina nic moc), ale kazdopadne radi v /etc/cups/cupsd.conf zmenit veci co tam vubec nemam.
Nicméně tudy cesta nevede. Už jsem asi zjistil (nebyl jsem si jistý), že - tak jak to bývá - uživatelé v CUPSu se nekryjí s uživateli systému. Takže jsem vytvořil uživatele a nastavil mu heslo.
~$ sudo lppasswd -a plastique Enter password: Enter password again:
Pozor na to, že musí být delší šesti znaků a obsahovat musí aspoň jeden znak a jedno číslo. Nesmí jít o jméno uživatele.
lppasswd: Sorry, password rejected. Your password must be at least 6 characters long, cannot contain your username, and must contain at least one letter and number.
Pak jsem ještě tréninkově pustil sudo dpkg-reconfigure cupsys, ale myslím, že tyhle věci se tam nenastavují, na nic jsem nenarazil.
Ještě na samém začátku jsem v /etc/group změnil záznam tak, abys obsahoval "cupsys", ale fakt si nejsem jistý, jestli to hraje nějakou roli: shadow:x:42:cupsys
Do administrace zadám plastique:heslo a jede to ok - přidal jsem si zrovna (síťovou) tiskárnu, což jsem už dlouho oddaloval.
Snad ti to pomohlo.
shadow:x:42 na shadow:x:42:cupsys.E [02/Aug/2006:08:45:30 +0200] cupsdAuthorize: pam_authenticate() returned 7 (Authentication failure)! E [02/Aug/2006:08:45:30 +0200] CUPS-Add-Modify-Printer: Unauthorized
# Show general information in error_log. LogLevel infocož může být důležité, když se změní třeba na debug.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.