Portál AbcLinuxu, 9. května 2025 03:13
none /proc/bus/usb usbfs defaults,devmode=0666 0 0a pak napíši
mount -a, vyběhne hláška že v tom smyslu, že struktura
/proc/bus/usbje už připojena jinam nebo se používá. Tak jsem zkusil vypsat při neupraveném fstab
cat /etc/mtab. Ano struktura
/proc/bus/usbtam opravdu je už po startu. Jenže nevím proč! Co jí tam připojí? Hotplug? Udev? Jediný o co mi jde je aby jí to tam připojilo i s tím, že k tomu bude moci i běžný uživatel. Asi by tam mělo být to devmode=0666. Snad jsem to napsal srozumitelně. Za případnou radu děkuji.
The permissions for the device files used by libusb must be adjusted for user access. Otherwise only root can use SANE devices. For Linux, the devices are located in /proc/bus/usb/. There are directories named e.g. "001" (the bus name) containing files "001", "002" etc. (the device files). The right device files can be found out by running scanimage -L as root. Setting permissions with "chmod" is not perma- nent, however. They will be resetted after reboot or replugging the scanner. In Linux versions before 2.6 it was also possible to mount the usbfs with the option "devmode=0666", e.g. by using the following line in /etc/fstab: none /proc/bus/usb usbfs defaults,devmode=0666 0 0 DUE TO A KERNEL BUG THIS WON’T WORK WITH CURRENT 2.6 KERNELS. USE HOT- PLUG INSTEAD However, this way everyone has access to all USB devices. Another way to set permissions is to use the hotplug utilities (http://linux-hot- plug.sourceforge.net/), which support dynamic setting of access per- missions. SANE comes with hotplug scripts in the directory tools/hot- plug. They can be used for setting permissions. Last, the frontends can be run as root. However, that’s not recommended for security rea- sons.
fstab
, protoze to stejne nefunguje... bfu-man
, ale z casovych duvodu to samozrejme nikdy nedospelo do stadia realizace. Takze kdyby nekdo chtel zacit, tak vyse uvedeny preklad uvolnuju pod GPL-2. sane-find-scanner # No SCSI scanners found. If you expected something different, make sure that # you have loaded a SCSI driver for your SCSI adapter. found USB scanner (vendor=0x055f, product=0x021a, chip=GT-6816?) at libusb:001:002 # 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.Tohle je můj scanner. Opravdu se nechci rejpat v fstab. Kam mám připojit jaký zařízení?? Tohle mi to píše jako root.
scanimage -L device `gt68xx:libusb:001:002' is a Mustek BearPaw 2448 TA Plus flatbed scannerProsím pokud možno návod podrobný. Děkuji.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.