|
Bugzilla – Full Text Bug Listing |
| Summary: | scanning only working for root (yast/sane/kooka/SuSEconfig) | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 10.2 | Reporter: | First Name Last Name <sinderbox+novell> |
| Component: | YaST2 | Assignee: | Johannes Meixner <jsmeix> |
| Status: | RESOLVED FIXED | QA Contact: | Jiri Srain <jsrain> |
| Severity: | Major | ||
| Priority: | P5 - None | CC: | lnussel |
| Version: | RC 2 | ||
| Target Milestone: | --- | ||
| Hardware: | x86-64 | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | Other | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: |
yast logs
/usr/lib/YaST2/bin/test_and_set_scanner_access_permissions 80-scanner.fdi lshal.out test_and_set_scanner_access_permissions.out |
||
|
Description
First Name Last Name
2006-11-27 14:24:43 UTC
Please attach your yast log files and output of the 'hwinfo --scanner' (as root, while your scanner is connected). http://en.opensuse.org/Bugs/YaST Thank you # hwinfo --scanner 23: SCSI 401.0: 10c04 Scanner [Created at scsi.1546] UDI: /org/freedesktop/Hal/devices/pci_9004_5078_scsi_device_lun0_scsi_generic Unique ID: olmp.NBRjDO9kTJ5 Parent ID: hH_P.WsvlrmNH3M8 SysFS ID: /class/scsi_generic/sg2 SysFS BusID: 4:0:1:0 Hardware Class: scanner Model: "EPSON SCANNER GT-7000" Vendor: "EPSON" Device: "SCANNER GT-7000" Revision: "1.14" Driver: "aic7xxx" Driver Modules: "aic7xxx" Device File: /dev/sg2 Device Number: char 21:2 Config Status: cfg=new, avail=yes, need=no, active=unknown Attached to: #20 (SCSI storage controller) I will attach y2logs, however it will probably not help since after removing my scanner with yast and installing it again, the permissions for /dev/sg2 remain as I artificially set them. # ls -l /dev/sg2 crw-rw---- 1 root dialout 21, 2 Nov 27 15:14 /dev/sg2 after a massive system upgrades it returns to crw------- 1 root disk ,,,, so I cannot be certain which package resets the permissions. Probably sane. Created attachment 107099 [details]
yast logs
YaST sets scanner access permissions by calling /usr/lib/YaST2/bin/test_and_set_scanner_access_permissions which checks if the scanner is already listed in /etc/hal/fdi/policy/10osvendor/70-scanner.fdi and if not it writes /etc/hal/fdi/policy/10osvendor/80-scanner.fdi to set up HAL to trigger resmgr to grant access for normal users, see bug #218393 for background information. Regarding YaST, attach /etc/hal/fdi/policy/10osvendor/80-scanner.fdi as mime type "text plain" to this bug. Regarding HAL, do as root lshal >/tmp/lshal.out and attach /tmp/lshal.out as mime type "text plain" to this bug. Additionally change in /usr/lib/YaST2/bin/test_and_set_scanner_access_permissions the line #set -x to set -x and run it as follows (type it on one single command line) ------------------------------------------------------------------------------- /usr/lib/YaST2/bin/test_and_set_scanner_access_permissions \ 'epkowa:/dev/sg2;unknown;' &>/tmp/test_and_set_scanner_access_permissions.out ------------------------------------------------------------------------------- and attach /tmp/test_and_set_scanner_access_permissions.out as mime type "text plain" to this bug. Created attachment 107339 [details]
/usr/lib/YaST2/bin/test_and_set_scanner_access_permissions
I have an idea what might cause the problem.
Therefore here a new version of
/usr/lib/YaST2/bin/test_and_set_scanner_access_permissions
which might solve the problem.
Please test this one.
Submitted yast2-scanner with the fix according to attachment #107339 [details] to STABLE.
Regardless whether it solves the problem in this bug, there was a bug
in test_and_set_scanner_access_permissions which is now fixed.
Got no info. Therefore I assume it is fixed (see comment #6). Additionally have a look at https://bugzilla.novell.com/show_bug.cgi?id=218393#c26 I am sorry I couldn't follow up. It still doesn't work. I next comment I provide the requeste info. Created attachment 108769 [details]
80-scanner.fdi
Created attachment 108770 [details]
lshal.out
Created attachment 108771 [details]
test_and_set_scanner_access_permissions.out
device permissions were again reset. # l /dev/sg2 crw-r----- 1 root disk 21, 2 Dec 7 08:18 /dev/sg2 Attachment #108771 [details] shows that you still use the old /usr/lib/YaST2/bin/test_and_set_scanner_access_permissions which doesn't work in your particular case. Therefore I made the fix according to comment #6 which is included in the openSUSE 10.2 final version. Obviously you must update it (either with attachment #107339 [details] or install the openSUSE 10.2 final version). Therefore I still think it is fixed. If it doesn't work even with attachment #107339 [details] or with the openSUSE 10.2 final version, it might be a duplicate of bug #226044 In problematic cases there is always the following workaround: YaST scanner config: -> [Other] -> "Scanning via Network" -> [Local Host Configuration] -> [Next] -> [Finish] See http://en.opensuse.org/SDB:Configuring_Scanners_from_SUSE_LINUX_9.2 in the "ibusb + resmgr + PAM" section the info about "saned". |