Author Topic: <SOLVED> Scanner permissions won't stick  (Read 614 times)

Offline barryc

  • Sr. Member
  • ****
  • Posts: 321
<SOLVED> Scanner permissions won't stick
« on: April 20, 2010, 02:02:39 PM »
Running KDE4 with 2.6.33.2.pclos1.bfs kernel.  All my hardware works fine with the exception
of my UMAX Astra 2400S (scsi).  After searching around the forum, I found that the scanner would
only work if I ran Xsane as root.

I did run sane-find-scanner in a console (as root) and it did show up and is designated as /dev/sg4

I went into the /dev directory as root and changed the owner and group permissions of sg4 to barry/barry from root
Xsane immediately worked and the scanner performed perfectly.

Once I rebooted, however, the /dev/sg4 permissions reverted back to root/root and I have to go through
the same drill again to get the scanner recognized.

How do I get the user permissions to stick?
« Last Edit: April 22, 2010, 01:37:57 PM by barryc »
You gotta have balls to play golf.

Offline barryc

  • Sr. Member
  • ****
  • Posts: 321
Re: Scanner permissions won't stick
« Reply #1 on: April 22, 2010, 12:45:09 PM »
Still no joy.  Simply won't make the permissions stick through a boot.
Added scanner to my /etc/group file as suggested in sane-scsi manual.
Added my user name to the scanner group.
Clicked on xsane icon on my cairo-dock and scanner recognized and xsane
software came up on desktop.  Scanner works fine -- no glitches.
Reboot and back to square one.  Permissions revert to root.root for /dev/sg4.

Is this a udev problem or am I missing something??  ???  ???
You gotta have balls to play golf.

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12657
Re: Scanner permissions won't stick
« Reply #2 on: April 22, 2010, 01:11:56 PM »
Quick work around fix is to edit /etc/rc.d/rc.local and add

chown barry:barry /dev/sg4


Thanks to everyone who donates. You keep the servers running.
Follow me on Twitter for the latest development info.

Offline barryc

  • Sr. Member
  • ****
  • Posts: 321
Re: Scanner permissions won't stick
« Reply #3 on: April 22, 2010, 01:36:48 PM »
Quick work around fix is to edit /etc/rc.d/rc.local and add

chown barry:barry /dev/sg4


Tex:
"Quick" and "fix" couldn't be more accurate.
Worked great!

Another great mystery solved.  Seems this problem should be taken care of in udev
but I hate udev.  Wish there were a better way.

Thanks Tex, and congratulations on the super job you and the ripper gang did on this distro.
You gotta have balls to play golf.

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12657
Re: Scanner permissions won't stick
« Reply #4 on: April 22, 2010, 01:40:08 PM »
Quick work around fix is to edit /etc/rc.d/rc.local and add

chown barry:barry /dev/sg4


Tex:
"Quick" and "fix" couldn't be more accurate.
Worked great!

Another great mystery solved.  Seems this problem should be taken care of in udev
but I hate udev.  Wish there were a better way.

Thanks Tex, and congratulations on the super job you and the ripper gang did on this distro.

Yeh I can't make head nor tails of udev rules. I hate udev.


# permissions for SCSI CD devices
SUBSYSTEM=="scsi", KERNEL=="sg*", MODE="0660", GROUP="cdwriter"

and

SUBSYSTEMS=="scsi", KERNEL=="sg[0-9]*", ATTRS{type}=="[18]", GROUP="tape" MODE="0660"

Why 2 entries and why does one have cdwriter and the other has tape? I don't know...  ??? ??? ???

Thanks to everyone who donates. You keep the servers running.
Follow me on Twitter for the latest development info.