[Server] Scanner non funzionante da utenti non root

Riconoscimento, installazione e configurazione delle periferiche.
Scrivi risposta
aleksi
Prode Principiante
Messaggi: 11
Iscrizione: venerdì 24 ottobre 2008, 23:45

[Server] Scanner non funzionante da utenti non root

Messaggio da aleksi »

Salve a tutti,
ho recentemente installato una ubuntu server 10.10 su un vecchio computer per crearmi un server casalingo.
Il mio problema risiede nel fatto che dovendo scannerizzare immagini con uno scanner HP ScanJet 5400C, ho installato sane e sane-utils.
Quando ho testato lo scanner da utente root, tutto finzionava.

Quando ho provato a  scannerizzare un'immagine con un'utonto qualsiasi mi dice che non ci sono scanner.

Ecco i vari comandi eseguiti:
da root:

Codice: Seleziona tutto

root@kidexo:/# scanimage -L
device `hp5400:libusb:003:005' is a Hewlett-Packard HP54xx Flatbed Scanner flatbed scanner
root@kidexo:/# sane-find-scanner

  # sane-find-scanner will now attempt to detect your scanner. If the
  # result is different from what you expected, first make sure your
  # scanner is powered up and properly connected to your computer.

  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a kernel SCSI driver for your SCSI adapter.

found USB scanner (vendor=0x03f0 [Hewlett-Packard], product=0x1105 [HP Scanjet 5400C Series]) at libusb:003:005
  # Your USB scanner was (probably) detected. It may or may not be supported by
  # SANE. Try scanimage -L and read the backend's manpage.

  # Not checking for parallel port scanners.

  # Most Scanners connected to the parallel port or other proprietary ports
  # can't be detected by this program.
da utonto:

Codice: Seleziona tutto

aleksi@kidexo:/$ scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
aleksi@kidexo:/$ sane-find-scanner

  # sane-find-scanner will now attempt to detect your scanner. If the
  # result is different from what you expected, first make sure your
  # scanner is powered up and properly connected to your computer.

  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a kernel SCSI driver for your SCSI adapter.

found USB scanner (vendor=0x03f0, product=0x1105) at libusb:003:005
  # Your USB scanner was (probably) detected. It may or may not be supported by
  # SANE. Try scanimage -L and read the backend's manpage.

  # Not checking for parallel port scanners.

  # Most Scanners connected to the parallel port or other proprietary ports
  # can't be detected by this program.

  # You may want to run this program as root to find all devices. Once you
  # found the scanner devices, be sure to adjust access permissions as
  # necessary.
Dato che credo di intendere essere un problema di permessi, dove diavolo li devo settare???

Dico già che quando ho installato sane non mi ha creato un gruppo chiamato "scanner" ma solo un gruppo chiamato "saned" a cui ho già aggiunto gli utonti che necessitano dello scanner.

Grazie,
Aleksi
gabo
Prode Principiante
Messaggi: 69
Iscrizione: giovedì 19 aprile 2007, 0:26

Re: [Server] Scanner non funzionante da utenti non root

Messaggio da gabo »

potresti creare una regola sudo per permettere che solo quel comando possa essere lanciato come root agendo sulla configurazione del file sudoers, è forse una delle vie più brevi.
aleksi
Prode Principiante
Messaggi: 11
Iscrizione: venerdì 24 ottobre 2008, 23:45

Re: [Server] Scanner non funzionante da utenti non root

Messaggio da aleksi »

In realtà a me servirebbe che il comando sia eseguibile dai non root
aleksi
Prode Principiante
Messaggi: 11
Iscrizione: venerdì 24 ottobre 2008, 23:45

Re: [Server] Scanner non funzionante da utenti non root

Messaggio da aleksi »

Nessuno può aiutarmi??
Avatar utente
Janvitus
Amministratore
Amministratore
Messaggi: 18787
Iscrizione: lunedì 25 aprile 2005, 15:52
Desktop: GNOME Shell / Xfce
Sesso: Maschile
Località: Potenza
Contatti:

Re: [Server] Scanner non funzionante da utenti non root

Messaggio da Janvitus »

Usa lo strumento "utenti e gruppi" e aggiungi un nuovo gruppo "scanner", aggiungi il tuo utente, Prova a vedere se va.
+Fedora 40 • +Xubuntu 24.04
aleksi
Prode Principiante
Messaggi: 11
Iscrizione: venerdì 24 ottobre 2008, 23:45

Re: [Server] Scanner non funzionante da utenti non root

Messaggio da aleksi »

è una ubuntu server...
Avatar utente
paper0k
Rampante Reduce
Rampante Reduce
Messaggi: 7220
Iscrizione: lunedì 2 ottobre 2006, 13:39
Contatti:

Re: [Server] Scanner non funzionante da utenti non root

Messaggio da paper0k »

Chiunque può essere ragionevole, ma esser sani di mente è raro (Oscar Wilde)
Wiki|Blog|Twitter|Identi.ca|last.fm
aleksi
Prode Principiante
Messaggi: 11
Iscrizione: venerdì 24 ottobre 2008, 23:45

Re: [Server] Scanner non funzionante da utenti non root

Messaggio da aleksi »

Già provato non cambia assolutamente nulla
Avatar utente
Danx
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1853
Iscrizione: giovedì 9 ottobre 2008, 19:33

Re: [Server] Scanner non funzionante da utenti non root

Messaggio da Danx »

Quando ho testato lo scanner da utente root, tutto finzionava.
se per esempio usi firefox o qualsiasi altro programma da utente root le relative cartelle e files diventano di proprietà di root e non sono più accessibili da utente, potrebbe essere successo qualcosa di simile? Ad ogni modo per le hp la cosa migliore è installare il programma hplip da sourceforge,

http://hplipopensource.com/hplip-web/in ... index.html

rinomina il file semplicemente hplip.run
credo che sane e sane-utils non servano, installa hplip da utente normale con il comando
./hplip.run
Avatar utente
paper0k
Rampante Reduce
Rampante Reduce
Messaggi: 7220
Iscrizione: lunedì 2 ottobre 2006, 13:39
Contatti:

Re: [Server] Scanner non funzionante da utenti non root

Messaggio da paper0k »

Allora è probabile che lo scanner non è contemplato nelle rules di udev
Entra nella cartella etc/udev/rules.d/ ed esegui questo comando

Codice: Seleziona tutto

grep -i 03f0 *
e vedi cosa visualizza, probabilmente è da aggiornare il file scanner.rules (o come si chiama) con i dati rilevati da sane-find-scanner
Chiunque può essere ragionevole, ma esser sani di mente è raro (Oscar Wilde)
Wiki|Blog|Twitter|Identi.ca|last.fm
fileo
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1591
Iscrizione: martedì 19 giugno 2007, 17:14

Re: [Server] Scanner non funzionante da utenti non root

Messaggio da fileo »

Riapro la discussione perché mi sembra che il mio problema sia lo stesso.
Ubuntu 10.04 e scanner Epson 10000 XL.
Ho letto anche altre discussioni su problemi simili.
Xsane vede lo scanner solo da root.

Questo è il risultato del comando sudo sane-find-scanner:

Codice: Seleziona tutto

  # sane-find-scanner will now attempt to detect your scanner. If the
  # result is different from what you expected, first make sure your
  # scanner is powered up and properly connected to your computer.

  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a kernel SCSI driver for your SCSI adapter.

found USB scanner (vendor=0x04b8 [EPSON], product=0x0129 [EPSON Scanner]) at libusb:002:003
  # Your USB scanner was (probably) detected. It may or may not be supported by
  # SANE. Try scanimage -L and read the backend's manpage.

  # Not checking for parallel port scanners.

  # Most Scanners connected to the parallel port or other proprietary ports
  # can't be detected by this program.
Ho cancellato la cartella .sane e glie l'ho fatta ricreare.
Ho provato a modificare permessi, owner e gruppo della cartella e di tutti i file.
Nel gruppo saned c'è il nome del mio user normale.
ho creato anche il gruppo scanner mettendoci il mio user.

il comando

grep -i 03f0 *

non da nulla.

Che altro posso provare?  >:(

P.S. nel titolo c'era scritto server, io non ho una istallazione server, ma non credo che sposti il problema
ismaela69
Prode Principiante
Messaggi: 64
Iscrizione: sabato 3 dicembre 2011, 12:47

Re: [Server] Scanner non funzionante da utenti non root

Messaggio da ismaela69 »

CIao ho trovato questi esiti

# sane-find-scanner will now attempt to detect your scanner. If the
  # result is different from what you expected, first make sure your
  # scanner is powered up and properly connected to your computer.

  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a kernel SCSI driver for your SCSI adapter.

found USB scanner (vendor=0x04b8 [EPSON], product=0x012d [EPSON Scanner]) at libusb:001:011
  # Your USB scanner was (probably) detected. It may or may not be supported by
  # SANE. Try scanimage -L and read the backend's manpage.

  # Not checking for parallel port scanners.

  # Most Scanners connected to the parallel port or other proprietary ports
  # can't be detected by this program."

Che devo fare??
Scrivi risposta

Ritorna a “Driver e periferiche”

Chi c’è in linea

Visualizzano questa sezione: federicogalimberti e 6 ospiti