Aller au contenu principal
Sujet résolu
Ce sujet a été marqué résolu et ne nécessite aucune autre attention.
Sujet: pb de CUPs (Lu 2044 fois) sujet précédent - sujet suivant

pb de CUPs

j'ai lancé une impression  elle a imprimé une page mais il en reste 50...
j'ai lancé CUPS  et la reponse
---------------------------------------------------------------------------------
NON autorisé
Entrez votre nom et mot de passe ou ceux de root pour acceder à cette page
Si vous utilisez une authentification Kerberos vérifier
--------------------------------------------------------
c'est bloqué je ne vois pas oùu je peux rentrer mon nom ni mon mot de passe
Une aide SVP
Vicky

Re : pb de CUPs

Répondre #1
Bonjour

Essaye de voir si tu as accès à :

http://localhost:631, dans un navigateur

Re : pb de CUPs

Répondre #2
c'est comme ça que je lance CUPS...

 

Re : pb de CUPs

Répondre #3
je lance Cups par http://localhost=631/
puis je vais dans taches et là  je veux supprimer la tache en cours
il repond NON AUTORISé
Entrez votre nom etc
mais je ne sais pas où entrer mon nom et MP...


Re : pb de CUPs

Répondre #4
Montre ta config CUPS :

sudo cat /etc/cups/cupsd.conf

Re : pb de CUPs

Répondre #5
cat /etc/cups/cupsd.conf
#
# Configuration file for the CUPS scheduler.  See "man cupsd.conf" for a
# complete description of this file.
#

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

# Only listen for connections from the local machine.
Listen localhost:631
Listen /run/cups/cups.sock

# 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...
<Location />
  Order allow,deny
</Location>

# Restrict access to the admin pages...
<Location /admin>
  Order allow,deny
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
</Location>

# Restrict access to log files...
<Location /admin/log>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
</Location>

# Set the default printer/job policies...
<Policy default>
  # Job/subscription privacy...
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default

  # Job-related operations must be done by the owner or an administrator...
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    Order deny,allow
  </Limit>

  <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 Cancel-My-Jobs Close-Job CUPS-Move-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # Require authentication for CUPS-Get-Document otherwise unauthenticated users could access print job documents:
  <Limit CUPS-Get-Document>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <Limit Pause-Printer Resume-Printer 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 Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    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>

# Set the authenticated printer/job policies...
<Policy authenticated>
  # Job/subscription privacy...
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default

  # Job-related operations must be done by the owner or an administrator...
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    AuthType Default
    Order deny,allow
  </Limit>

  <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 Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <Limit Pause-Printer Resume-Printer 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 Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    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>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

# Set the kerberized printer/job policies...
<Policy kerberos>
  # Job/subscription privacy...
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default

  # Job-related operations must be done by the owner or an administrator...
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    AuthType Negotiate
    Order deny,allow
  </Limit>

  <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 Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
    AuthType Negotiate
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <Limit Pause-Printer Resume-Printer 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 Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    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>
    AuthType Negotiate
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

# The policy below is added by SUSE during build of our cups package.
# The policy 'allowallforanybody' is totally open and insecure and therefore
# it can only be used within an internal network where only trused users exist
# and where the cupsd is not accessible at all from any external host, see
# http://en.opensuse.org/SDB:CUPS_and_SANE_Firewall_settings
# Have in mind that any user who is allowed to do printer admin tasks
# can change the print queues as he likes - e.g. send copies of confidental
# print jobs from an internal network to any external destination, see
# http://en.opensuse.org/SDB:CUPS_in_a_Nutshell
# For documentation regarding 'Managing Operation Policies' see
# https://openprinting.github.io/cups/doc/policies.html
<Policy allowallforanybody>
  # Allow anybody to access job's private values:
  JobPrivateAccess all
  # Make none of the job values to be private:
  JobPrivateValues none
  # Allow anybody to access subscription's private values:
  SubscriptionPrivateAccess all
  # Make none of the subscription values to be private:
  SubscriptionPrivateValues none
  # Allow anybody to do all IPP operations:
  # Currently the IPP operations Validate-Job Cancel-Jobs Cancel-My-Jobs Close-Job CUPS-Get-Document
  # must be additionally exlicitly specified because those IPP operations are not included
  # in the "All" wildcard value - otherwise cupsd prints error messages of the form
  # "No limit for Validate-Job defined in policy allowallforanybody and no suitable template found."
  <Limit Validate-Job Cancel-Jobs Cancel-My-Jobs Close-Job CUPS-Get-Document>
    Order deny,allow
    Allow from all
  </Limit>
  # Since CUPS > 1.5.4 the "All" wildcard value must be specified separately,
  # otherwise clients like "lpstat -p" just hang up,
  # see https://bugzilla.opensuse.org/show_bug.cgi?id=936309
  # and https://www.cups.org/str.php?L4659
  <Limit All>
    Order deny,allow
    Allow from all
  </Limit>
</Policy>
# Explicitly set the CUPS 'default' policy to be used by default:
DefaultPolicy default

desktop-tcafd66:/home/vic

Re : pb de CUPs

Répondre #6
Bonjour

J'ai du reprendre toutes les lignes de ton fichier conf de CUPS.

Tu as des restrictions sur ces sections :

<Location />
<Location /admin>
<Location /admin/conf>
<Location /admin/log>


Modifie leurs autorisations en ajoutant : Allow from all dans les sections qui restreignent l'accès
sudo nano /etc/cups/cupsd.conf

<Location />
  Order allow,deny
  Allow from all
</Location>

<Location /admin>
  Order allow,deny
  Allow from all
</Location>

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

<Location /admin/log>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
  Allow from all
</Location>

Ensuite relance CUPS
sudo systemctl restart cups

Normalement, ce fichier conf, est nickel chez openSUSE , il n'y a pas à le modifier. Peut-être qu'il y a une nouvelle politique de sécurité chez SUSE.

---------
Une autre piste, essaye de lancer http ://localhost :631 en root, pour voir si tu as accès pour supprimer les impressions en attente.

Essaie avant la modification du fichier conf
-------

Re : pb de CUPs

Répondre #7
j'avais déjà essayé de lancer Firefox en Su cela a été refusé...
Pour modifier el fichier  dois-je le copier dans Kwrite puis le modifer et ensuite le recopier dans
quand le lance nano il me repond
--------------------------------------------------
nano /etc/cups/cupsd.conf


# Configuration file for the CUPS scheduler.  See "man cupsd.conf" for a
# complete description of this file.
#

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

# Only listen for connections from the local machine.
Listen localhost:631
Listen /run/cups/cups.sock

# 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...
<Location />
  Order allow,deny
</Location>

# Restrict access to the admin pages...
------------------------------------------------------------------------
              

Re : pb de CUPs

Répondre #8
Salut,
Essaies de le faire à la windaube :
Eteints l'imprimante et le PC et ensuite tu redémarre tout.
En principe tout rentre dans l'ordre et l'impression se lance toute seule sans que tu n'ai rien à faire de plus.
Ce genre de problème m'arrive de temps en temps, je sais pas pourquoi mais cette combine fonctionne pas trop mal.

Re : pb de CUPs

Répondre #9
j'avais déjà essayé de lancer Firefox en Su cela a été refusé...
C'est normal il faut se connecter en :

su -
ensuite lancer firefox
# firefox
Tu as essayé de lancer Firefox (application graphique) en tant que root dans une session d'un utilisateur normal. Ce n'est pas possible pour des raisons de sécurité.

Ok tu ne connais pas nano.
Tu vas utiliser gedit à la place de kwrite qui est plus adapté pour.

sudo gedit /etc/cups/cupsd.conf

Re : pb de CUPs

Répondre #10
Bonsoir,
il me semble que c’est vim qui est installé par défaut sur openSUSE. Je crois me souvenir avoir installé à la main nano car j’avais mes habitudes avec sur Debian.

Re : pb de CUPs

Répondre #11
Je vais déclarer le sujet resolu car
Cette imprimante CANON PIXMA 5055 n'imprime qu'en couleur
j'ai essayé  avec un autre disque sous Tux
un autre essai sous Windows 10  le meme texte il n'imprime que les lignes en couleurs...
donc je suis allé demander sur le Net pourquoi? 
et j'ai trouvé beaucoup de reponses mais aucunes solutions
Donc comme j'ai une imprimante en noir Laser
et que cette Canon veux bien scanner
si quelqu'un a une solution je suis preneur
Merci de vos aides
Bonne journée
Vicky

Re : pb de CUPs

Répondre #12
Du coup, je comprends mal ta problématique.
Tu as un soucis d'accès à l'interface de ton imprimante
ou d'impression en couleur ou noir et blanc 🤔

Tu nous as donné très peu de retour sur les commandes que l'on t'a proposées.

S'il faut chercher d'autres solutions, ça va être très difficile, car en définitif  ton problème n'est pas très bien posé et l'on ne connait pas le résultat de nos propositions pour creuser un peu plus et trouver une solution.

Re : pb de CUPs

Répondre #13
j'ai utilisé gedit et j'ai sauvé
mais!!!
marche pas
----------------------------------------------------------------------------------------------------------------------------------
#
# Configuration file for the CUPS scheduler.  See "man cupsd.conf" for a
# complete description of this file.
#

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

# Only listen for connections from the local machine.
Listen localhost:631
Listen /run/cups/cups.sock

# 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...
<Location />
  Order allow,deny
  Allow from all
</Location>

# Restrict access to the admin pages...
<Location /admin>
  Order allow,deny
  Allow from all
</Location>


# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
  Allow from all
</Location>
-

Re : pb de CUPs

Répondre #14
Bonjour à toutes et tous
@ Chalu , c'est "kate " l'éditeur de texte par défaut sur Tumbleweed  KDE, je ne sais pas pour Gnome et les  autres
@ Vicky , je suis plutôt du genre Caterpillar  que broderie fine , mais
Je suis allé voir sur le site Canon (j'ai une pixma  MG 3600) , apparemment il y a des cartouches couleurs et noires
Ton problème pourrait  venir  des injecteurs bouchés dans les t^tes d'impression , si c'est ça , ça peut être compliqué
Un autre truc un peu idiot ( ça m'est déjà arrivé ) tu n'aurais pas fait une impression en blanc sur du papier foncé et que l'imprimante serait restée en " blanc "
Bonne chance pour la suite