Pages : 1
#1 Le 10/09/2014, à 16:50
- Florent42
authentification avec CUPS
Rebonjour,
Suite de mes déboires avec Cups :
Je n'arrive pas à gérer les imprimantes, aucun mot de passe n'est accepté.
j'ai essayé cette solution sans succès : http://forum.ubuntu-fr.org/viewtopic.php?id=28619
Voici mon cupsd.conf
#
#
# Sample 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
# Deactivate CUPS' internal logrotating, as we provide a better one, especially
# LogLevel debug2 gets usable now
MaxLogSize 0
# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/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
</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>
# 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 CUPS-Get-Document>
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>
#
#
Quelqu'un a une idée ?
Merci
Florent
Hors ligne
#2 Le 10/09/2014, à 17:04
- nam1962
Re : authentification avec CUPS
Peux tu mettre ton résultat entre balises code et nous donner les info indiquées là : http://forum.ubuntu-fr.org/viewtopic.ph … #p17949401
Le login dans cups est ton login et le mdp est ton... mdp
Passe aussi un
sudo apt-get install --reinstall cups
[ Modéré ]
Hors ligne
#3 Le 10/09/2014, à 17:35
- Florent42
Re : authentification avec CUPS
Merci Nam 1962
Voici les infos
[missemer@P-MISSEMER:~$ cat /etc/issue #la version utilisée
Ubuntu 14.04.1 LTS \n \l
missemer@P-MISSEMER:~$ uname -r #le noyau utilisé
3.13.0-35-generic
missemer@P-MISSEMER:~$ echo $XDG_CURRENT_DESKTOP #environnement utilisé
Unity
missemer@P-MISSEMER:~$ echo $GDMSESSION #variante utilisée
gnome-fallback-compiz
missemer@P-MISSEMER:~$ lspci | grep "VGA compatible controller" #carte graphique installée
01:00.0 VGA compatible controller: NVIDIA Corporation G96GLM [Quadro FX 770M] (rev a1)
missemer@P-MISSEMER:~$ grep MemTotal /proc/meminfo #taille de la RAM
MemTotal: 4123728 kB
]
Sudo apt-get update ne retourne aucune erreur.
Mais je n'arrive toujours pas à m'authentifier ... ! avec mon loggin et mon mot de passe actuel, ni avec des plus anciens !
Une idée ?
Hors ligne
#4 Le 10/09/2014, à 17:36
- Florent42
Re : authentification avec CUPS
...je viens de comprendre comment marchent les balises...je ferai mieux au prochain post.
Hors ligne
#5 Le 10/09/2014, à 17:41
- nam1962
Re : authentification avec CUPS
As tu installé hplip ? http://hplipopensource.com/hplip-web/index.html
[ Modéré ]
Hors ligne
#6 Le 10/09/2014, à 18:01
- Florent42
Re : authentification avec CUPS
Non, je n'ai pas de matériel HP. Est-ce utile d'installer HPLIP ?
Hors ligne
#7 Le 10/09/2014, à 18:16
- nam1962
Re : authentification avec CUPS
J'avais cru comprendre, aucun intérêt effectivement.
Modèle et marque de tes imprimantes ?
(Pour les balises, tu peux corriger tes posts précédents en surlignant tes réponses PUIS en cliquant sur la balise code)
[ Modéré ]
Hors ligne
#8 Le 10/09/2014, à 18:19
- Florent42
Re : authentification avec CUPS
samsung ML1640 et autres, dell, toshiba etc...je souhaiterais utiliser cups et pas des installateurs liés aux imprimantes.
Hors ligne
#9 Le 10/09/2014, à 18:32
- nam1962
Re : authentification avec CUPS
As tu leur IP ? que se passe t'il quand tu tapes l'IP de l'une d'elle dans ton navigateur?
[ Modéré ]
Hors ligne
#10 Le 10/09/2014, à 18:55
- Florent42
Re : authentification avec CUPS
Je ne connais pas l'IP de toutes ces imprimantes.
Cela semble fonctionner avec system-config-printer. Je creuse la question de ce coté là et vous tiens au courant.
Merci pour votre aide.
Hors ligne
#11 Le 10/09/2014, à 21:20
- alca94
Re : authentification avec CUPS
Bonsoir
Si ça peut vous aider ,le mode d'emploi de CUPS
http://doc.gnu-darwin.org/fr/sam.html#FAQ
POUR METTRE LES RETOURS DU "TERMINAL" voir les explications sur ce post
https://forum.ubuntu-fr.org/viewtopic.p … #p17345641
Hors ligne
Pages : 1