Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 19/08/2010, à 13:51

FrenchFigaro

Problème de configuration de CUPS

Bonjour tout le monde.

Je suis en train d'installer un serveur CUPS au bureau avec une Ubtuntu 10.04 Server Edition. J'ai un souci de configuration pour l'interface de cupsys parce que les gens qui vont utiliser et administrer le serveur par la suite n'ont pas forcément les compétences pour le faire en ligne de commande.

Je n'arrive pas à accéder à l'interface autrement que par l'interface loopback. Pas moyen depuis le réseau. J'ai pourtant autorisé l'administration à distance et désactivé le pare-feu (au moins pour les tests, on verra la suite après)

Voilà le contenu de mon fichier cuspd.conf

LogLevel warn
MaxLogSize 0
SystemGroup lpadmin
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
# Disable printer sharing and shared printers.
Browsing Off
DefaultAuthType Basic
<Location />
  # Allow remote administration...
  Order allow,deny
  Allow all
</Location>
<Location /admin>
  # Allow remote administration...
  Order allow,deny
  Allow all
</Location>
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  # Allow remote access to the configuration files...
  Order allow,deny
  Allow all
</Location>
<Policy default>
  <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 CUPS-Get-Document>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <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>
  <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 CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit All>
    Order deny,allow
  </Limit>
</Policy>
<Policy authenticated>
  <Limit Create-Job Print-Job Print-URI>
  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 CUPS-Move-Job CUPS-Get-Document>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
  </Limit>
  <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>
  <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 CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
      </Limit>
  <Limit Cancel-Job CUPS-Authenticate-Job>
      AuthType Default
      Require user @OWNER @SYSTEM
      Order deny,allow
        </Limit>
  <Limit All>
        Order deny,allow
          </Limit>
</Policy>

Merci d'avance pour vos conseils ;-)


Au nom de l'immortel Empereur Linux, héritier d'UNIX, moi, FrenchFigaro, fidèle servant de la cause opensource, je te renvoie là d'où tu n'aurais jamais dû sortir Microsoft !

Hors ligne

#2 Le 19/08/2010, à 20:22

grandtoubab

Re : Problème de configuration de CUPS

d'après ce que j'ai lu ici
http://www.linuxquestions.org/questions/linux-server-73/cups-remote-administration-563138/

If you have an ssh connection to the server, you could use a text based browser such as links. Browse to http://localhost:631
Press the down arrow until you get to the Administration Tab and press enter. Then press the down arrow until you get to the "Allow Remote Administration" box and press enter. Press the down arrow to "Change Settings" and press enter. You may need to enter the root username and password. After that, you should be able to connect remotely via the web browser ( https://hostname:631 )

Après avoir autorise remote administration en local, http://localhost:631/admin
Allow remote administration
il faut ouvrir le port 631 et se connecter par https://hostname:631

Dernière modification par grandtoubab (Le 19/08/2010, à 20:24)


Linux tout seul sur HP Pavilion DV7 et Acer Aspire T650, Canon MG3650 en wifi
Debian 11 Bullseye Gnome/Xorg, Gnome/Wayland avec SDDM
https://bidouilledebian.wordpress.com/
ON M'A VU DANS LE VERCORS, SAUTER A L'ELASTIQUE..... J'AI DANS LES BOTTES DES MONTAGNES DE QUESTIONS....

Hors ligne

#3 Le 19/08/2010, à 20:26

FrenchFigaro

Re : Problème de configuration de CUPS

J'ai résolu le problème en commentant les lignes suivantes

  # Allow remote administration...
  # Order allow,deny
  # Allow all

dans les trois premières balises <Location>. Mais ça pue le bricolage mal fait en fait.

Et en autorisant l'administration à distance et en ouvrant le pare-feu je n'ai PAS accès à l'interface justement. C'était là la source de mon problème comme précisé dans le post:

J'ai pourtant autorisé l'administration à distance et désactivé le pare-feu (au moins pour les tests, on verra la suite après)

Anyway, merci pour le tip, je testerais ça demain.

Dernière modification par FrenchFigaro (Le 19/08/2010, à 20:27)


Au nom de l'immortel Empereur Linux, héritier d'UNIX, moi, FrenchFigaro, fidèle servant de la cause opensource, je te renvoie là d'où tu n'aurais jamais dû sortir Microsoft !

Hors ligne