Pagina 1 di 1

aggiungere una stampante su debian 4.0

Inviato: lun 27 ago 2007, 15:23
da absinthe
lo so che l'argomento è stupido, ma non ci riesco!

utilizzo l'indirizzo localhost:631 per configurare le stampanti come con slack, se non chè, quando arrivo al momento di identificarmi per rendere definitiva la configurazione, il sistema non mi accetta l'utente root con la sua password (sono sicuro di non sbagliarla) e non riesco ad installare nessuna stampante. credo sia un problema di permessi ma sulla guida debian installata insieme al sistema base (la debian reference) non ho trovato nulla... potete indicarmi qualche link su cui leggere di più? o indicarmi sulla documentazione allegata qualcosa che mi è sfuggito?

grazie,
M

Inviato: lun 27 ago 2007, 20:55
da clodo
Ciao,
scusa se te chiedo ma sei sicuro della password? Perchè non c'è alcuna configurazione da cambiare o permessi strani, in una installazione base -tipo vai di apt-get per gnome o kde >cups viene installato e non ci sono altre questioni-. Do per scontato che nell'interfaccia web di cups tu trovi la stampante...non penso nemmeno tu abbia editato il file di config. di cups mettendo la password cifrata...altra cosa scontata è che l'interfaccia di loopback sia regolarmente settata.

Inviato: lun 27 ago 2007, 21:10
da pedrus
In fase di installazione hai espressamente rispondo affermativamente alla domanda se volevi che l'utente root potesse fare il login? Con debian, almeno nella versione Netinst, che è quella che ho fatto io ogni tanto, ti viene posta questa domanda. Se rispondi no allora ti ritrovi un sistema configurato, sotto questo aspetto, un po' come ubuntu, dove in pratica l'utente root è disabilitato e, quindi, per ottenere i privilegi di super user si usa il comando sudo. Magari lanciando il browser con i privilegi di root (es. sudo firefox) potresti risolvere il problema, e quando ti chiede i dati di login utilizzi quelli dell'utente.
Non ho mai usato cups non avendo una stampante, per cui prendi molto con le pinze quello che ho scritto.

Inviato: mar 28 ago 2007, 0:02
da Luci0
Ciao ... prova a dare un occhiata al file /etc/cups/cupsd.conf ... almeno su Slackware é lì... comunque ho una debian 4.0 installata da qualche parte ... al limite controllo ...

Inviato: mar 28 ago 2007, 9:29
da absinthe
grazie delle risposte:

1- sì sono strasicuro della password. quando non funzionava ho provato a usare il comando su da konsole (uso kde) e la password me l'ha presa senza problemi.
2- oddio all'interfaccia di loopback non ho pensato. in linea di massima penserei di sì e comunque se non fosse funzionante in teoria non dovrei neppure trovare la pagina iniziale di cups all'indirizzo localhost. o sbaglio?
3- anche io ho usato netinstall e l'utente root era disabilitato. però riconfigurando gdm ho abilitato il login locale di root. tanto è vero che quando non riuscivo a installare la stampante usando un login utente (e inserendo però l'utente root all'autenticazione in cups), mi sono riloggato direttamente nel sistema come root!

la cosa strana è che anche se avvio una sessione di kde come root, quando porto a fine la configurazione della stampante, prima di installarla cups mi chiede l'autenticazione!

4- ho dato un occhio al file di config di cups e non ci ho capito una mazza di primo acchito, quindi , dato che mi pareva strano che ci fossero settaggi "particolari" in debian, prima di mettermi a leggere tutte le regole di configurazione mi chiedevo se non stato sbagliando qualcosa di banale...

non ho idee al momento...

M

Inviato: mar 28 ago 2007, 10:11
da clodo
Anche nella installazione tradizionale viene chiesto cosa fare con il login di root...prova con un altro browser, o reinstalla da zero firefox (rimuovendolo completamente prima) e riprova.

Inviato: mar 28 ago 2007, 10:23
da clodo
.....controlla anche a quali gruppi appartiene l'utente root, non si sa mai.....

Inviato: mar 28 ago 2007, 11:24
da Luci0
Visto che sei sfaticato ... posta quel bellissimo file di configurazione e si confronta con quello della slackware ... secondo me il problema é lì ...
ecco uno stralcio della sezione admin
------------

Codice: Seleziona tutto

....
<Location /admin>
#
# You definitely will want to limit access to the administration funct
ions.
# The default configuration requires a local connection from a user wh
o
# is a member of the system group to do any admin tasks.  You can chan
ge
# the group name using the SystemGroup directive.
#

AuthType Basic
AuthClass System

## Restrict access to local domain
Order Deny,Allow
Deny From All
Allow From 127.0.0.1

#Encryption Required
</Location>
----------------


:-)

Inviato: mar 28 ago 2007, 16:40
da clodo
questo il file in debian:
#
# Sample configuration file for the Common UNIX Printing System (CUPS)
# scheduler. See "man cupsd.conf" for a complete description of this
# file.
#

# Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel warning

# Administrator user group...
SystemGroup lpadmin

# 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 On
BrowseOrder allow,deny
BrowseAllow @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>

#
#

#
# Printcap: the name of the printcap file. Default is /etc/printcap.
# Leave blank to disable printcap file generation.
#

Printcap /var/run/cups/printcap

#
# PrintcapFormat: the format of the printcap file, currently either
# BSD or Solaris. The default is "BSD".
#

#PrintcapFormat BSD
#PrintcapFormat Solaris

#
# PrintcapGUI: the name of the GUI options panel program to associate
# with print queues under IRIX. The default is "/usr/bin/glpoptions"
# from ESP Print Pro.
#
# This option is only used under IRIX; the options panel program
# must accept the "-d printer" and "-o options" options and write
# the selected printer options back to stdout on completion.
#

#PrintcapGUI /usr/bin/glpoptions

Controlla anche il file /etc/networks:

default 0.0.0.0
loopback 127.0.0.0
link-local 169.254.0.0

Inviato: gio 30 ago 2007, 9:22
da absinthe
intanto grazie per le risposte... chiedo scusa ma il pc con debian è un fisso della sede di firenze e in questi giorni non ci bazzico molto...

tanto per fare subito una prova veloce ho sostituito il file cupsd.conf con quello di clodo (il mio file era leggermente diverso e ve lo riporto in coda).
il file /etc/networks era ok! uguale al tuo clodo

ho riavviato cups ma nisba,
ho riavviato tutta debian ma nisba

ho provato sia con firefox che con konqueror ma nisba...

no capisco cosa fare... tutte le volte arivo in fondo alla procedura e quando mi chiede di autenticarmi inserisco nome utente (root) e password e cups mi risponde "autenticazione non riuscita": questo è il registro degli errori di cups:
E [30/Aug/2007:09:11:46 +0200] CUPS-Add-Modify-Printer: Unauthorized
E [30/Aug/2007:09:11:56 +0200] cupsdAuthorize: pam_authenticate() returned 7 (Authentication failure)!
E [30/Aug/2007:09:11:56 +0200] CUPS-Add-Modify-Printer: Unauthorized
E [30/Aug/2007:09:12:08 +0200] cupsdAuthorize: pam_authenticate() returned 7 (Authentication failure)!
E [30/Aug/2007:09:12:08 +0200] CUPS-Add-Modify-Printer: Unauthorized
E [30/Aug/2007:09:16:23 +0200] CUPS-Add-Modify-Printer: Unauthorized
E [30/Aug/2007:09:16:31 +0200] cupsdAuthorize: pam_authenticate() returned 7 (Authentication failure)!
E [30/Aug/2007:09:16:31 +0200] CUPS-Add-Modify-Printer: Unauthorized
E [30/Aug/2007:09:17:19 +0200] CUPS-Add-Modify-Printer: Unauthorized
E [30/Aug/2007:09:17:33 +0200] cupsdAuthorize: pam_authenticate() returned 7 (Authentication failure)!
E [30/Aug/2007:09:17:33 +0200] CUPS-Add-Modify-Printer: Unauthorized
E [30/Aug/2007:09:20:40 +0200] CUPS-Add-Modify-Printer: Unauthorized
questo è il file cups originale:

Codice: Seleziona tutto

#
#
#   Sample configuration file for the Common UNIX Printing System (CUPS)#
#
#   Sample configuration file for the Common UNIX Printing System (CUPS)
#   scheduler.  See "man cupsd.conf" for a complete description of this
#   file.
#

# Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel warning

# Administrator user group...
SystemGroup lpadmin

# 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 On
BrowseOrder allow,deny
BrowseAllow @LOCAL

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Restrict access to the server...
<Location />
  Order allow,deny
  Allow localhost
</Location>

# Restrict access to the admin pages...
<Location /admin>
  Encryption Required
  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>

#
#

#
# Printcap: the name of the printcap file.  Default is /etc/printcap.
# Leave blank to disable printcap file generation.
#

Printcap /var/run/cups/printcap

#
# PrintcapFormat: the format of the printcap file, currently either
# BSD or Solaris.  The default is "BSD".
#

#PrintcapFormat BSD
#PrintcapFormat Solaris

#
# PrintcapGUI: the name of the GUI options panel program to associate
# with print queues under IRIX.  The default is "/usr/bin/glpoptions"
# from ESP Print Pro.
#
# This option is only used under IRIX; the options panel program
# must accept the "-d printer" and "-o options" options and write
# the selected printer options back to stdout on completion.
#

#PrintcapGUI /usr/bin/glpoptions
#   scheduler.  See "man cupsd.conf" for a complete description of this
#   file.
#

# Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel warning

# Administrator user group...
SystemGroup lpadmin

# 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 On
BrowseOrder allow,deny
BrowseAllow @LOCAL

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Restrict access to the server...
<Location />
  Order allow,deny
  Allow localhost
</Location>

# Restrict access to the admin pages...
<Location /admin>
  Encryption Required
  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>

#
#

#
# Printcap: the name of the printcap file.  Default is /etc/printcap.
# Leave blank to disable printcap file generation.
#

Printcap /var/run/cups/printcap

#
# PrintcapFormat: the format of the printcap file, currently either
# BSD or Solaris.  The default is "BSD".
#

#PrintcapFormat BSD
#PrintcapFormat Solaris

#
# PrintcapGUI: the name of the GUI options panel program to associate
# with print queues under IRIX.  The default is "/usr/bin/glpoptions"
# from ESP Print Pro.
#
# This option is only used under IRIX; the options panel program
# must accept the "-d printer" and "-o options" options and write
# the selected printer options back to stdout on completion.
#

#PrintcapGUI /usr/bin/glpoptions
grazie,
M

Inviato: gio 30 ago 2007, 9:43
da Luci0
Dai messaggi ... deve essere un problema sulle PAM !!! appena posso do un' occhiata sulla macchina Debian che é sullo scaffale