PCLinuxOS-Forums
News: ...FLASH!!! ...New PCLinuxOS Testing board now open. Register today! Be an active contributor to the PCLinuxOS future! ... Read all about it now, on THIS forum!!!..
 
*
Welcome, Guest. Please login or register. May 26, 2012, 10:36:44 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: <SOLVED> Scanner permissions won't stick  (Read 439 times)
barryc
Sr. Member
****
Offline Offline

Posts: 255



« on: April 20, 2010, 03: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?
Logged


Register your computer here
barryc
Sr. Member
****
Offline Offline

Posts: 255



« Reply #1 on: April 22, 2010, 01: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??  Huh  Huh
Logged


Register your computer here
Texstar
Administrator
Super Villain
*****
Offline Offline

Posts: 11805



« Reply #2 on: April 22, 2010, 02:11:56 PM »

Quick work around fix is to edit /etc/rc.d/rc.local and add

chown barry:barry /dev/sg4

Logged

Follow the development of PCLinuxOS on Twitter
Help fund the PCLinuxOS project!

"I'm not so good on advice, can I interest you in a sarcastic reply?"
barryc
Sr. Member
****
Offline Offline

Posts: 255



« Reply #3 on: April 22, 2010, 02: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.
Logged


Register your computer here
Texstar
Administrator
Super Villain
*****
Offline Offline

Posts: 11805



« Reply #4 on: April 22, 2010, 02: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...  Huh Huh Huh
Logged

Follow the development of PCLinuxOS on Twitter
Help fund the PCLinuxOS project!

"I'm not so good on advice, can I interest you in a sarcastic reply?"
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM