LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-11-2005, 12:04 AM   #1
jpearsonx4
Newbie
 
Registered: Jun 2004
Location: California
Distribution: Suse 9.1
Posts: 16

Rep: Reputation: 0
scanner issue


I am trying to setup my scanner in Fedora Core 4. It is a Brother MFC 8440 laser printer/scanner/copier/fax.
I can use the scanner as root but not as a general user. It works fine in Kooka and Xsane but only as root. How do I get permission as a general user. It works fine as a printer as a general user.
Thank you in advance.
John
 
Old 08-11-2005, 01:45 AM   #2
linux-rulz
Member
 
Registered: Dec 2004
Distribution: Windows XP Home, Ubuntu Hoary
Posts: 584

Rep: Reputation: 30
Ah, Red Hat hasn't fixed that problem yet. I have this same problem in RHEL4. OK, use a text editor as root and edit this file : /etc/udev/permissions.d/50-udev.permissions

You will see a section that looks like this somewhere around the middle of the file.

Code:
# scanner devices
scanner:root:root:0664
usb/scanner*:root:root:0664
Make sure the numbers at the end of the last two lines are in-fact 0664...if they are anything else, change them to this. Then, either reboot the machine, or unplug and replugin the scanner. It should now work.

Let me know how it works out.
 
Old 08-12-2005, 01:01 AM   #3
jpearsonx4
Newbie
 
Registered: Jun 2004
Location: California
Distribution: Suse 9.1
Posts: 16

Original Poster
Rep: Reputation: 0
Thank you for your reply. I did a search for that file and as far as I can see I cannot find it. I did find the folder /etc/udev but there is no permissions.d
and I was root.
Any other suggestions?
Thanks
John
 
Old 08-12-2005, 01:41 AM   #4
linux-rulz
Member
 
Registered: Dec 2004
Distribution: Windows XP Home, Ubuntu Hoary
Posts: 584

Rep: Reputation: 30
Could you please post a list of all of the files in your /etc/udev folder and its subdirectories? Thanks

EDIT : In-case you are wondering why I am asking, I am using Red Hat Enterprise Linux 4 (CentOS 4 to be more precise) so maybe the filename has changed since RHEL4 was released.
 
Old 08-13-2005, 12:10 AM   #5
jpearsonx4
Newbie
 
Registered: Jun 2004
Location: California
Distribution: Suse 9.1
Posts: 16

Original Poster
Rep: Reputation: 0
Ok here we go. In the main folder there is one file:
udev.conf
There are 3 folders:
1.
etc/udev/Devices
Has 0 files
2.
etc/udev/rules.d
Has 2 files which are:
10-wacom.rules
50-udev.rules
3.
etc/udev/scripts
has 7 files which are:
check-cdrom.sh
dvb.sh
hotplug.sh
ide-media.sh
makedev.dev
pam_console.dev
udevpermconv.sh
I did open the files with a text editor and none that I could see had anything which mentions a scanner.
Thank you for looking into this for me I appreciate the help
John
 
Old 08-13-2005, 12:52 AM   #6
linux-rulz
Member
 
Registered: Dec 2004
Distribution: Windows XP Home, Ubuntu Hoary
Posts: 584

Rep: Reputation: 30
Could you please post all of the 50-udev.rules file. Thx
 
Old 08-13-2005, 01:06 AM   #7
jpearsonx4
Newbie
 
Registered: Jun 2004
Location: California
Distribution: Suse 9.1
Posts: 16

Original Poster
Rep: Reputation: 0
Here you go
# There are a number of modifiers that are allowed to be used in some of the
# fields. See the udev man page for a full description of them.
#
# default is OWNER="root" GROUP="root", MODE="0600"
#

# all block devices
SUBSYSTEM=="block", GROUP="disk", MODE="0640"

# console devices
KERNEL=="tty", MODE="0666"
KERNEL=="tty[0-9]", GROUP="tty", MODE="0660"
KERNEL=="tty[0-9][0-9]*", GROUP="tty", MODE="0660"
KERNEL=="vc/[0-9]*", GROUP="tty", MODE="0660"

# pty devices
# Set this to 0660 if you only want users belonging to tty group
# to be able to allocate PTYs
KERNEL=="ptmx", GROUP="tty", MODE="0666"
KERNEL=="pty[p-za-e][0-9a-f]*", GROUP="tty", MODE="0660"
KERNEL=="tty[p-za-e][0-9a-f]*", GROUP="tty", MODE="0660"
KERNEL=="pty/m*", GROUP="tty", MODE="0660"
KERNEL=="vc/s*", GROUP="tty", MODE="0660"

# serial+dialup devices
KERNEL=="ttyS*", GROUP="uucp", MODE="0660"
KERNEL=="ippp*", MODE="0660"
KERNEL=="isdn*", MODE="0660"
KERNEL=="isdnctrl*", MODE="0660"
KERNEL=="capi*", MODE="0660"
KERNEL=="dcbri*", MODE="0660"
KERNEL=="ircomm*", GROUP="uucp", MODE="0660"
KERNEL=="ttyUSB*", GROUP="uucp", MODE="0660"
KERNEL=="tts/[0-9]*", GROUP="uucp", MODE="0660"
KERNEL=="tts/USB[0-9]*", GROUP="uucp", MODE="0660"

# vc devices
KERNEL=="vcs", OWNER="vcsa", GROUP="tty"
KERNEL=="vcs[0-9]*", OWNER="vcsa", GROUP="tty"
KERNEL=="vcsa", OWNER="vcsa", GROUP="tty"
KERNEL=="vcsa[0-9]*", OWNER="vcsa", GROUP="tty"
KERNEL=="vcc/*", OWNER="vcsa", GROUP="tty"

# memory devices
KERNEL=="random", MODE="0666"
KERNEL=="urandom", MODE="0444"
KERNEL=="mem", GROUP="kmem", MODE="0640"
KERNEL=="kmem", GROUP="kmem", MODE="0640"
KERNEL=="port", GROUP="kmem", MODE="0640"
KERNEL=="full", MODE="0666"
KERNEL=="null", MODE="0666"
KERNEL=="zero", MODE="0666"

# misc devices
KERNEL=="nvram", MODE="0660"
KERNEL=="rtc", MODE="0644"

# floppy devices
KERNEL=="fd[01]*", GROUP="floppy", MODE="0660"

# audio devices
KERNEL=="dsp*", MODE="0660"
KERNEL=="audio*", MODE="0660"
KERNEL=="midi*", MODE="0660"
KERNEL=="mixer*", MODE="0660"
KERNEL=="sequencer*", MODE="0660"
KERNEL=="sound/*", MODE="0660"
KERNEL=="snd/*", MODE="0660"
KERNEL=="beep", MODE="0660"
KERNEL=="admm*", MODE="0660"
KERNEL=="adsp*", MODE="0660"
KERNEL=="aload*", MODE="0660"
KERNEL=="amidi*", MODE="0660"
KERNEL=="dmfm*", MODE="0660"
KERNEL=="dmmidi*", MODE="0660"
KERNEL=="sndstat", MODE="0660"

# pilot/palm devices
KERNEL=="pilot", GROUP="uucp", MODE="0660"

# lp devices
KERNEL=="lp*", GROUP="lp", MODE="0660"
KERNEL=="parport*", GROUP="lp", MODE="0660"
KERNEL=="irlpt*", GROUP="lp", MODE="0660"
KERNEL=="usblp*", GROUP="lp", MODE="0660"
KERNEL=="usb/lp*", GROUP="lp", MODE="0660"

# tape devices
KERNEL=="ht*", GROUP="disk", MODE="0640"
KERNEL=="nht*", GROUP="disk", MODE="0640"
KERNEL=="pt[0-9]*", GROUP="disk", MODE="0640"
KERNEL=="npt*", GROUP="disk", MODE="0640"
KERNEL=="st*", GROUP="disk", MODE="0640"
KERNEL=="nst*", GROUP="disk", MODE="0640"
KERNEL=="osst*", GROUP="disk", MODE="0640"
KERNEL=="nosst*", GROUP="disk", MODE="0640"

# diskonkey devices
KERNEL=="diskonkey*", GROUP="disk", MODE="0640"

# rem_ide devices
KERNEL=="microdrive*", GROUP="disk", MODE="0640"

# kbd devices
KERNEL=="kbd", MODE="0644"

# joystick devices
KERNEL=="js[0-9]*", MODE="0644"
KERNEL=="djs[0-9]*", MODE="0644"

# v4l devices
KERNEL=="video*", MODE="0660"
KERNEL=="radio*", MODE="0660"
KERNEL=="winradio*", MODE="0660"
KERNEL=="vtx*", MODE="0660"
KERNEL=="vbi*", MODE="0660"
KERNEL=="video/*", MODE="0660"
KERNEL=="vttuner", MODE="0660"
KERNEL=="v4l/*", MODE="0660"

# input devices
KERNEL=="input/*", MODE="0660"

# gpm devices
KERNEL=="gpmctl", MODE="0700"

# dri devices
KERNEL=="nvidia*", MODE="0660"
KERNEL=="3dfx*", MODE="0660"
KERNEL=="dri/*", MODE="0666"

# usb devices
KERNEL=="usb/dabusb*", GROUP="usb", MODE="0660"
KERNEL=="usb/mdc800*", GROUP="usb", MODE="0660"
KERNEL=="usb/rio500", GROUP="usb", MODE="0660"

# s390 devices
KERNEL=="z90crypt", MODE="0666"

# DVB
KERNEL=="dvb/*", MODE="0660"
KERNEL=="dvb", MODE="0660"
KERNEL=="dvb/adapter*", MODE="0660"

# create a symlink named after the device map name
# note devmap_name comes with extras/multipath
#KERNEL=="dm-[0-9]*", PROGRAM="/sbin/devmap_name %M %m", NAME="%k", SYMLINK="%c"

# DRI devices always go into a subdirectory (as per the LSB spec)
KERNEL=="card*", NAME="dri/card%n"

# alsa devices
KERNEL=="controlC[0-9]*", NAME="snd/%k"
KERNEL=="hw[CD0-9]*", NAME="snd/%k"
KERNEL=="pcm[CD0-9cp]*", NAME="snd/%k"
KERNEL=="midi[CD0-9]*", NAME="snd/%k"
KERNEL=="timer", NAME="snd/%k"
KERNEL=="seq", NAME="snd/%k"

# input devices
KERNEL=="mice", NAME="input/%k"
KERNEL=="mouse*", NAME="input/%k"
KERNEL=="event*", NAME="input/%k"
KERNEL=="js*", NAME="input/%k"
KERNEL=="ts*", NAME="input/%k"

KERNEL=="raw[0-9]*", NAME="raw/%k"

KERNEL=="lp[0-9]*", SYMLINK="par%n"
BUS=="usb", KERNEL=="lp[0-9]*", NAME="usb/%k"

KERNEL=="microcode", NAME="cpu/%k"
KERNEL=="ram1", SYMLINK="ram"
KERNEL=="video0", SYMLINK="video"
KERNEL=="radio0", SYMLINK="radio"
KERNEL=="audio0", SYMLINK="audio"
KERNEL=="dsp0", SYMLINK="dsp"
KERNEL=="fb0", SYMLINK="fb"
KERNEL=="qft0", SYMLINK="ftape"
KERNEL=="isdnctrl0", SYMLINK="isdnctrl"
KERNEL=="mixer0", SYMLINK="mixer"
KERNEL=="ram0", SYMLINK="ramdisk"
KERNEL=="sbpcd0", SYMLINK="sbpcd"
KERNEL=="radio0", SYMLINK="radio"
KERNEL=="tty0", SYMLINK="systty"
KERNEL=="vbi0", SYMLINK="vbi"
KERNEL=="null", SYMLINK="XOR"

KERNEL=="tun", NAME="net/%k"

KERNEL=="device-mapper", NAME="mapper/control"

# old compat symlinks with enumeration
KERNEL=="sr[0-9]*", SYMLINK="cdrom%e"
KERNEL=="scd[0-9]*", SYMLINK="cdrom%e"
KERNEL=="pcd[0-9]*", SYMLINK="cdrom%e"
KERNEL=="fd[0-9]*", SYMLINK="floppy%e"
KERNEL=="nst[0-9]", BUS=="scsi", SYMLINK="tape%e"
KERNEL=="nosst[0-9]", BUS=="scsi", SYMLINK="tape%e"

KERNEL=="umad*", NAME="infiniband/%k"
KERNEL=="issm*", NAME="infiniband/%k"

# Section for zaptel device
KERNEL=="zapctl", NAME="zap/ctl"
KERNEL=="zaptimer", NAME="zap/timer"
KERNEL=="zapchannel", NAME="zap/channel"
KERNEL=="zappseudo", NAME="zap/pseudo"
KERNEL=="zap[0-9]*", NAME="zap/%n"

# do not seperate the next 2 lines!!
KERNEL=="hd[a-z]", BUS=="ide", SYSFS{removable}=="1", PROGRAM=="/etc/udev/scripts/ide-media.sh %k", RESULT=="floppy", SYMLINK="floppy%e", NAME{ignore_remove, all_partitions}="%k"

KERNEL=="hd[a-z]", BUS=="ide", SYSFS{removable}=="1", RESULT=="cdrom", SYMLINK="cdrom%e"

KERNEL=="hd[a-z]", BUS=="ide", SYSFS{removable}=="1", PROGRAM=="/etc/udev/scripts/check-cdrom.sh %k DVD", SYMLINK="dvd%e"
KERNEL=="sr[0-9]*", BUS=="scsi", PROGRAM=="/etc/udev/scripts/check-cdrom.sh %k DVD", SYMLINK="dvd%e"

KERNEL=="hd[a-z]", BUS=="ide", SYSFS{removable}=="1", PROGRAM=="/etc/udev/scripts/check-cdrom.sh %k CD-R", SYMLINK="cdwriter%e"
KERNEL=="sr[0-9]*", BUS=="scsi", PROGRAM=="/etc/udev/scripts/check-cdrom.sh %k CD-R", SYMLINK="cdwriter%e"

KERNEL=="hd[a-z]", BUS=="ide", SYSFS{removable}=="1", PROGRAM="/etc/udev/scripts/check-cdrom.sh %k DVD-R", SYMLINK="dvdwriter%e"
KERNEL=="sr[0-9]*", BUS=="scsi", PROGRAM=="/etc/udev/scripts/check-cdrom.sh %k DVD-R", SYMLINK="dvdwriter%e"

# rename sr* to scd*
KERNEL=="sr[0-9]*", BUS=="scsi", NAME="scd%n"
KERNEL=="hd[a-z]*", BUS=="ide", SYSFS{removable}=="1", NAME{ignore_remove}="%k"

KERNEL=="dvb*", PROGRAM=="/etc/udev/scripts/dvb.sh %k", NAME="%c"
_____
I could not make any sense of it but that is why I am posting in this forum
 
Old 08-13-2005, 06:47 AM   #8
linux-rulz
Member
 
Registered: Dec 2004
Distribution: Windows XP Home, Ubuntu Hoary
Posts: 584

Rep: Reputation: 30
Well, you aren't going to be happy, but it looks like the layout for the udev config files completely changed between RHEL4/Fedora Core 3 and Fedora Core 4. I will look around the internet for a solution. It may take me a few days to find one though. Make sure if I don't post in a day or two, to bump your post to remind me ttyl
 
Old 08-13-2005, 11:22 PM   #9
jpearsonx4
Newbie
 
Registered: Jun 2004
Location: California
Distribution: Suse 9.1
Posts: 16

Original Poster
Rep: Reputation: 0
Thank you for your help with all of this. It is very much appreciated.
John
 
Old 08-14-2005, 03:38 AM   #10
linux-rulz
Member
 
Registered: Dec 2004
Distribution: Windows XP Home, Ubuntu Hoary
Posts: 584

Rep: Reputation: 30
Well, I checked high and low, and couldn't find any info. You're best bet is going to #fedora on irc.freenode.net or the fedora mailing lists. Sorry man.
 
Old 08-14-2005, 08:09 AM   #11
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 233Reputation: 233Reputation: 233
Would a brute force recursive grep help?
Code:
# grep -R scanner /etc/udev/*
or even
Code:
# grep -R scanner /etc/*
as root (note prompt) & piped into less as necessary.
 
Old 08-14-2005, 06:34 PM   #12
linux-rulz
Member
 
Registered: Dec 2004
Distribution: Windows XP Home, Ubuntu Hoary
Posts: 584

Rep: Reputation: 30
To be quite honest, I am not entirely sure....I figured it would be easy to fix like on CentOS....I recommend you just keep bumping your post until someone answers you.

As an afterthought...could you run the following commands and post the output please (as root).

updatedb
locate scanner
 
Old 08-14-2005, 11:29 PM   #13
jpearsonx4
Newbie
 
Registered: Jun 2004
Location: California
Distribution: Suse 9.1
Posts: 16

Original Poster
Rep: Reputation: 0
When I ran the command this is what the reply was:
/etc/log.d/scripts/services/mailscanner
/etc/log.d/conf/services/mailscanner.conf
/etc/hotplug/usb/libusbscanner
/root/.kde/share/config/scannerrc
/usr/X11R6/lib/X11/xfig/Libraries/Computers/scanner.fig
/usr/lib/kde3/kview_scannerplugin.so
/usr/lib/kde3/kview_scannerplugin.la
/usr/lib/qt-3.3/include/qpolygonscanner.h
/usr/share/dia/shapes/Cisco/scanner.png
/usr/share/dia/shapes/Cisco/scanner.shape
/usr/share/icons/crystalsvg/16x16/devices/scanner.png
/usr/share/icons/crystalsvg/32x32/devices/scanner.png
/usr/share/icons/crystalsvg/64x64/devices/scanner.png
/usr/share/icons/crystalsvg/48x48/devices/scanner.png
/usr/share/icons/crystalsvg/scalable/devices/scanner.svgz
/usr/share/gtk-doc/html/gok/gok-gok-scanner.html
/usr/share/apps/kview/kpartplugins/kviewscanner.rc
/usr/share/apps/kview/kpartplugins/kviewscanner.desktop
/usr/share/doc/mgetty-1.1.33/scanner.txt
/usr/share/doc/HTML/en/kdelibs-apidocs/kdeprint/html/kdeprint_2networkscanner_8cpp-source.html
/usr/share/doc/HTML/en/kdelibs-apidocs/kdeprint/html/kdeprint_2networkscanner_8h-source.html
/usr/share/doc/HTML/en/kdelibs-apidocs/kdeprint/html/ppdscanner_8cpp-source.html/usr/share/doc/HTML/en/kdelibs-apidocs/kdeprint/html/management_2networkscanner_8h-source.html
/usr/share/doc/HTML/en/kdelibs-apidocs/kdeprint/html/fooscanner_8cpp-source.html/usr/share/doc/HTML/en/kdelibs-apidocs/kdeprint/html/management_2networkscanner_8cpp-source.html
/usr/share/doc/HTML/en/kdelibs-apidocs/dcop/html/scanner_8cc-source.html
/usr/share/doc/sane-backends-1.0.15/umax/sane-umax-scanner-clones-doc.html
/usr/share/man/man1/tvtime-scanner.1.gz
/usr/share/man/man1/sane-find-scanner.1.gz
/usr/share/man/de/man1/tvtime-scanner.1.gz
/usr/include/glib-2.0/glib/gscanner.h
/usr/include/boost/spirit/core/scanner
/usr/include/boost/spirit/core/scanner/skipper.hpp
/usr/include/boost/spirit/core/scanner/impl
/usr/include/boost/spirit/core/scanner/impl/skipper.ipp
/usr/include/boost/spirit/core/scanner/scanner.hpp
/usr/bin/tvtime-scanner
/usr/bin/sane-find-scanner
___
John
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Qmail-scanner: custom scanner cuigri Linux - Software 1 10-18-2004 06:46 AM
HP PSC1110 Scanner issue Shaoran Linux - Newbie 1 08-28-2004 08:39 AM
Scanner issue weng Linux - General 3 12-20-2003 11:22 PM
can't locate module scanner > how to get scanner work? b0uncer Linux - Hardware 1 10-26-2003 07:50 AM
Scanner driver for USB scanner rros Linux - Newbie 1 04-23-2001 01:30 AM


All times are GMT -5. The time now is 10:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration