Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora User (http://www.linux-archive.org/fedora-user/)
-   -   saned: permission problem with Deskjet_F300_series all-in-one (http://www.linux-archive.org/fedora-user/27100-saned-permission-problem-deskjet_f300_series-all-one.html)

Nick Urbanik 01-02-2008 07:39 PM

saned: permission problem with Deskjet_F300_series all-in-one
 
Dear Folks,

I am having problems setting up saned on F8.

I've created user and group saned.

When I do:
$ sudo -u saned sane-find-scanner |grep ^found
found USB scanner (vendor=0x03f0, product=0x5511) at libusb:003:004
However, as myself, we also get the model information:
$ sane-find-scanner |grep ^found
found USB scanner (vendor=0x03f0 [HP], product=0x5511 [Deskjet F300 series]) at libusb:003:004
$ scanimage -L
device `hpaio:/usb/Deskjet_F300_series?serial=CN72FGM1CB04KH' is a Hewlett-Packard Deskjet_F300_series all-in-one
And as the saned user, we get no biscuit:
$ sudo -u saned scanimage -L

No scanners were identified.

Here are the permissions:
$ ls -l /proc/bus/usb/003/004
-rw-r--r-- 1 root root 147 2008-01-03 06:21 /proc/bus/usb/003/004
$ cat /selinux/enforce
0


local scanning works fine for me.
All updates applied.

I'd be grateful for any suggestions.
--
Nick Urbanik http://nicku.org nicku@nicku.org
GPG: 7FFA CDC7 5A77 0558 DC7A 790A 16DF EC5B BB9D 2C24 ID: BB9D2C24
--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

"Mr.Scrooge" 01-03-2008 12:16 AM

saned: permission problem with Deskjet_F300_series all-in-one
 
This might be a stupid question but did you give the saned group permission to use the scanner? I
installed an all in one device at home and i installed it under my account(via
System>Administration>(root Password) and other users i.e. my girlfriend could not use it right
away.
--- Nick Urbanik <nicku@nicku.org> wrote:

> Dear Folks,
>
> I am having problems setting up saned on F8.
>
> I've created user and group saned.
>
> When I do:
> $ sudo -u saned sane-find-scanner |grep ^found
> found USB scanner (vendor=0x03f0, product=0x5511) at libusb:003:004
> However, as myself, we also get the model information:
> $ sane-find-scanner |grep ^found
> found USB scanner (vendor=0x03f0 [HP], product=0x5511 [Deskjet F300 series]) at libusb:003:004
> $ scanimage -L
> device `hpaio:/usb/Deskjet_F300_series?serial=CN72FGM1CB04KH' is a Hewlett-Packard
> Deskjet_F300_series all-in-one
> And as the saned user, we get no biscuit:
> $ sudo -u saned scanimage -L
>
> No scanners were identified.
>
> Here are the permissions:
> $ ls -l /proc/bus/usb/003/004
> -rw-r--r-- 1 root root 147 2008-01-03 06:21 /proc/bus/usb/003/004
> $ cat /selinux/enforce
> 0
>
> local scanning works fine for me.
> All updates applied.
>
> I'd be grateful for any suggestions.
> --
> Nick Urbanik http://nicku.org nicku@nicku.org
> GPG: 7FFA CDC7 5A77 0558 DC7A 790A 16DF EC5B BB9D 2C24 ID: BB9D2C24
> > --
> fedora-list mailing list
> fedora-list@redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



__________________________________________________ __________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

Nick Urbanik 01-03-2008 03:02 AM

saned: permission problem with Deskjet_F300_series all-in-one
 
Dear Mr Scrooge,

On 02/01/08 17:16 -0800, Mr.Scrooge wrote:

This might be a stupid question but did you give the saned group
permission to use the scanner?


Clearly not; I don't understand why I can use it and saned can't.
I also am not clear on the udev setup required to get it to work.


I installed an all in one device at
home and i installed it under my account(via
System>Administration>(root Password) and other users i.e. my
girlfriend could not use it right away.


As I said before:

Here are the permissions:
$ ls -l /proc/bus/usb/003/004
-rw-r--r-- 1 root root 147 2008-01-03 06:21 /proc/bus/usb/003/004


Are you referring to somewhere else?
--
Nick Urbanik http://nicku.org nicku@nicku.org
GPG: 7FFA CDC7 5A77 0558 DC7A 790A 16DF EC5B BB9D 2C24 ID: BB9D2C24
--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

"Mr.Scrooge" 01-03-2008 12:52 PM

saned: permission problem with Deskjet_F300_series all-in-one
 
Nick Urbanik <nicku@nicku.org> wrote: Dear Mr Scrooge,

On 02/01/08 17:16 -0800, Mr.Scrooge wrote:
>This might be a stupid question but did you give the saned group
>permission to use the scanner?

Clearly not; I don't understand why I can use it and saned can't.
I also am not clear on the udev setup required to get it to work.

>I installed an all in one device at
>home and i installed it under my account(via
>System>Administration>(root Password) and other users i.e. my
>girlfriend could not use it right away.

As I said before:
>> Here are the permissions:
>> $ ls -l /proc/bus/usb/003/004
>> -rw-r--r-- 1 root root 147 2008-01-03 06:21 /proc/bus/usb/003/004
I think you are having the same problem that i was having. Root owns the printer
and has read/write permission. The group permissions( in this case the group root belongs to which only includes root has read and everyone else has only the read permission). It confused me as well the first time. So you must use chmod to make the printer accessible to everyone or try installing the printer while logged in as a member of the saned group. Can members of the saned group even see the printer? Does it show up in the drop down when they try to print or is the postscript/default the only thing present?

Nick Urbanik http://nicku.org nicku@nicku.org
GPG: 7FFA CDC7 5A77 0558 DC7A 790A 16DF EC5B BB9D 2C24 ID: BB9D2C24
--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list


Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

Nick Urbanik 01-03-2008 09:54 PM

saned: permission problem with Deskjet_F300_series all-in-one
 
On 03/01/08 05:52 -0800, Mr.Scrooge wrote:

Nick Urbanik <nicku@nicku.org> wrote: Dear Mr Scrooge,
On 02/01/08 17:16 -0800, Mr.Scrooge wrote:

This might be a stupid question but did you give the saned group
permission to use the scanner?


Clearly not; I don't understand why I can use it and saned can't.
I also am not clear on the udev setup required to get it to work.


I installed an all in one device at
home and i installed it under my account(via
System>Administration>(root Password) and other users i.e. my
girlfriend could not use it right away.


As I said before:

Here are the permissions:
$ ls -l /proc/bus/usb/003/004
-rw-r--r-- 1 root root 147 2008-01-03 06:21 /proc/bus/usb/003/004

I think you are having the same problem that i was having. Root owns
the printer and has read/write permission. The group permissions( in
this case the group root belongs to which only includes root has read
and everyone else has only the read permission). It confused me as
well the first time. So you must use chmod to make the printer
accessible to everyone or try installing the printer while logged in
as a member of the saned group.


I don't see how that can help; you or I would do so as root.


Can members of the saned group even see the printer? Does it show up
in the drop down when they try to print or is the postscript/default
the only thing present?


But why can I (as my own login) use the scanner? Clearly I don't have
write access to the USB device, yet it works for me, but not the
saned user. Please look at the following carefully:

$ sudo -u saned scanimage -L
No scanners were identified.
$ sudo -u nicku scanimage -L
device `hpaio:/usb/Deskjet_F300_series?serial=CN72FGM1CB04KH' is a Hewlett-Packard Deskjet_F300_series all-in-one
$ sudo -u saned sane-find-scanner|grep ^found
found USB scanner (vendor=0x03f0, product=0x5511) at libusb:003:005
$ sudo -u nicku sane-find-scanner|grep ^found
found USB scanner (vendor=0x03f0 [HP], product=0x5511 [Deskjet F300 series]) at libusb:003:005
--
Nick Urbanik http://nicku.org nicku@nicku.org
GPG: 7FFA CDC7 5A77 0558 DC7A 790A 16DF EC5B BB9D 2C24 ID: BB9D2C24
--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

"Mikkel L. Ellertson" 01-03-2008 11:04 PM

saned: permission problem with Deskjet_F300_series all-in-one
 
Nick Urbanik wrote:
> Dear Folks,
>
> I am having problems setting up saned on F8.
>
> I've created user and group saned.
>
> When I do:
> $ sudo -u saned sane-find-scanner |grep ^found
> found USB scanner (vendor=0x03f0, product=0x5511) at libusb:003:004
> However, as myself, we also get the model information:
> $ sane-find-scanner |grep ^found
> found USB scanner (vendor=0x03f0 [HP], product=0x5511 [Deskjet F300
> series]) at libusb:003:004
> $ scanimage -L
> device `hpaio:/usb/Deskjet_F300_series?serial=CN72FGM1CB04KH' is a
> Hewlett-Packard Deskjet_F300_series all-in-one
> And as the saned user, we get no biscuit:
> $ sudo -u saned scanimage -L
>
> No scanners were identified.
>
> Here are the permissions:
> $ ls -l /proc/bus/usb/003/004
> -rw-r--r-- 1 root root 147 2008-01-03 06:21 /proc/bus/usb/003/004
> $ cat /selinux/enforce 0
>
> local scanning works fine for me.
> All updates applied.
>
> I'd be grateful for any suggestions.
>
Dumb question - is the scanner listed in
/etc/udev/rules.d/60-libsane.rules? (I think it is the sane in F8 as
in Fc6.) If it is not listed, then the scanner symlink is not being
created. Unless they changes things, the permission change for a
scanner id keyed to the scanner symlink. (scanner-0, scanner-1, etc)

Mikkel
--

Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

"Mr.Scrooge" 01-04-2008 12:40 AM

saned: permission problem with Deskjet_F300_series all-in-one
 
--- Nick Urbanik <nicku@nicku.org> wrote:

> On 03/01/08 05:52 -0800, Mr.Scrooge wrote:
> >Nick Urbanik <nicku@nicku.org> wrote: Dear Mr Scrooge,
> >On 02/01/08 17:16 -0800, Mr.Scrooge wrote:
> >>This might be a stupid question but did you give the saned group
> >>permission to use the scanner?
> >
> >Clearly not; I don't understand why I can use it and saned can't.
> >I also am not clear on the udev setup required to get it to work.
> >
> >>I installed an all in one device at
> >>home and i installed it under my account(via
> >>System>Administration>(root Password) and other users i.e. my
> >>girlfriend could not use it right away.
> >
> >As I said before:
> >>> Here are the permissions:
> >>> $ ls -l /proc/bus/usb/003/004
> >>> -rw-r--r-- 1 root root 147 2008-01-03 06:21 /proc/bus/usb/003/004
> >I think you are having the same problem that i was having. Root owns
> >the printer and has read/write permission. The group permissions( in
> >this case the group root belongs to which only includes root has read
> >and everyone else has only the read permission). It confused me as
> >well the first time. So you must use chmod to make the printer
> >accessible to everyone or try installing the printer while logged in
> >as a member of the saned group.
>
> I don't see how that can help; you or I would do so as root.
>
> >Can members of the saned group even see the printer? Does it show up
> >in the drop down when they try to print or is the postscript/default
> >the only thing present?
>
> But why can I (as my own login) use the scanner? Clearly I don't have
> write access to the USB device, yet it works for me, but not the
> saned user. Please look at the following carefully:
>
> $ sudo -u saned scanimage -L
> No scanners were identified.
> $ sudo -u nicku scanimage -L
> device `hpaio:/usb/Deskjet_F300_series?serial=CN72FGM1CB04KH' is a Hewlett-Packard
> Deskjet_F300_series all-in-one
> $ sudo -u saned sane-find-scanner|grep ^found
> found USB scanner (vendor=0x03f0, product=0x5511) at libusb:003:005
> $ sudo -u nicku sane-find-scanner|grep ^found
> found USB scanner (vendor=0x03f0 [HP], product=0x5511 [Deskjet F300 series]) at libusb:003:005
> --
> Nick Urbanik http://nicku.org nicku@nicku.org
> GPG: 7FFA CDC7 5A77 0558 DC7A 790A 16DF EC5B BB9D 2C24 ID: BB9D2C24

I understand your confusion as i shared it at one time. When i installed the printer I was logged
in as myself but all admin tasks require root privilege. I entered my root password to access the
printing applet under administration. I installed the printer. I never bothered to check to see if
another user could use the printer, it worked for me and at the time that was enough. Later when
another user logged on and attempted to print I was confronted with this situation. The only thing
i can surmise is that because each user is assigned their own private group that the install using
the sudo only applies to the currently logged in user/group. Fedora does a couple of things
differently than other distros but as i recall i had a similar issue when running openSusE.Also by
all indications the scanner is detected but you simply cannot use it, which would tend to support
the idea that you have read but not write permissions to the device. Anyway you have little to
lose by trying, incorrectly installing a printer/scanner won't wreck your machine. Try installing
while logged in as a member of the saned group or wait for someone more knowledgeable to chime in.
I do not claim to be an expert, i am simply sharing what worked for me. I wouldn't mind someone
explaining it in more detail either. Sometimes you gotta take the bull by the horns and damn the
consequences!!Fortune favors the bold!!


__________________________________________________ __________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

Nick Urbanik 01-10-2008 06:42 PM

saned: permission problem with Deskjet_F300_series all-in-one
 
Dear Folks,

On 03/01/08 17:40 -0800, Mr.Scrooge wrote:

Also by all indications the scanner is detected but you simply cannot
use it


As I indicated previously, I have always been able to use the scanner,
and so have other users logged into the box. The problem is getting
saned to to work.


Fortune favors the bold!!


I got saned working by putting it in a wrapper that enables debugging,
and called it from /etc/inittab rather than xinetd. Now my son can
use the scanner from his machine. I would rather have gotten it
working under xinetd, and might have another go at that some time in
the future. Still keen to hear of any ideas about what may be
the problem.
--
Nick Urbanik RHCE http://nicku.org nicku@nicku.org
GPG: 7FFA CDC7 5A77 0558 DC7A 790A 16DF EC5B BB9D 2C24 ID: BB9D2C24
--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list


All times are GMT. The time now is 04:34 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.