[opensuse-factory] USB memory devices are mounted with root as owner and only root have write access
Hi, I have looked around in bug reports and in the factory mailing list but have not found the same problem. This is in openSUSE 10.2 Beta 2. It is a fresh install from DVD. I have a 128Mb SD memory card that I use in a USB memory card reader. It mounts and I can read files, but not write. The ownership gets set to root/root and only owner has write access, The same happens when I connect my Nokia N80 with a 2 Gb memory card and a 128Mb no name USB memory stick Oddly enough, when I connect my Nokia 770 which have a 2Gb MMC card it mounts as expected with the user as owner. This is all done through the same USB memory card reader which also has a USB port. I checked with the phone connected to another USB port and it behaves the same so I do count the USB memory card reader out of the problem. /var/log/messages from the N80 connection: Nov 17 15:23:27 norbert kernel: usb 2-3: new full speed USB device using ohci_hcd and address 6 Nov 17 15:23:27 norbert kernel: usb 2-3: new device found, idVendor=0421, idProduct=0446 Nov 17 15:23:27 norbert kernel: usb 2-3: new device strings: Mfr=1, Product=2, SerialNumber=3 Nov 17 15:23:27 norbert kernel: usb 2-3: Product: Nokia N80 Nov 17 15:23:27 norbert kernel: usb 2-3: Manufacturer: Nokia Nov 17 15:23:27 norbert kernel: usb 2-3: SerialNumber: 358361005186063 Nov 17 15:23:27 norbert kernel: usb 2-3: configuration #1 chosen from 1 choice Nov 17 15:23:27 norbert kernel: scsi10 : SCSI emulation for USB Mass Storage devices Nov 17 15:23:27 norbert kernel: usb-storage: device found at 6 Nov 17 15:23:27 norbert kernel: usb-storage: waiting for device to settle before scanning Nov 17 15:23:28 norbert kernel: Vendor: Model: Rev: Nov 17 15:23:28 norbert kernel: Type: Direct-Access ANSI SCSI revision: 00 Nov 17 15:23:28 norbert kernel: SCSI device sdh: 3988232 512-byte hdwr sectors (2042 MB) Nov 17 15:23:28 norbert kernel: sdh: Write Protect is off Nov 17 15:23:28 norbert kernel: sdh: Mode Sense: 03 00 00 00 Nov 17 15:23:28 norbert kernel: sdh: assuming drive cache: write through Nov 17 15:23:28 norbert kernel: SCSI device sdh: 3988232 512-byte hdwr sectors (2042 MB) Nov 17 15:23:28 norbert kernel: sdh: Write Protect is off Nov 17 15:23:28 norbert kernel: sdh: Mode Sense: 03 00 00 00 Nov 17 15:23:28 norbert kernel: sdh: assuming drive cache: write through Nov 17 15:23:28 norbert kernel: sdh: Nov 17 15:23:28 norbert kernel: sd 10:0:0:0: Attached scsi removable disk sdh Nov 17 15:23:28 norbert kernel: sd 10:0:0:0: Attached scsi generic sg7 type 0 Nov 17 15:23:28 norbert kernel: usb-storage: device scan complete Nov 17 15:23:30 norbert hald: mounted /dev/sdh on behalf of uid 0
From the successfull N770 : Nov 17 15:25:04 norbert kernel: ohci_hcd 0000:00:02.0: wakeup Nov 17 15:25:05 norbert kernel: usb 1-2: new full speed USB device using ohci_hcd and address 12 Nov 17 15:25:05 norbert kernel: usb 1-2: new device found, idVendor=0421, idProduct=0431 Nov 17 15:25:05 norbert kernel: usb 1-2: new device strings: Mfr=1, Product=2, SerialNumber=3 Nov 17 15:25:05 norbert kernel: usb 1-2: Product: Nokia 770 Nov 17 15:25:05 norbert kernel: usb 1-2: Manufacturer: Nokia Nov 17 15:25:05 norbert kernel: usb 1-2: SerialNumber: 3230204F6374 Nov 17 15:25:05 norbert kernel: usb 1-2: configuration #1 chosen from 1 choice Nov 17 15:25:05 norbert kernel: scsi11 : SCSI emulation for USB Mass Storage devices Nov 17 15:25:05 norbert kernel: usb-storage: device found at 12 Nov 17 15:25:05 norbert kernel: usb-storage: waiting for device to settle before scanning Nov 17 15:25:06 norbert kernel: Vendor: Nokia Model: 770 Rev: 0308 Nov 17 15:25:06 norbert kernel: Type: Direct-Access ANSI SCSI revision: 02 Nov 17 15:25:06 norbert kernel: SCSI device sdg: 4078592 512-byte hdwr sectors (2088 MB) Nov 17 15:25:06 norbert kernel: sdg: Write Protect is off Nov 17 15:25:06 norbert kernel: sdg: Mode Sense: 0f 00 00 00 Nov 17 15:25:06 norbert kernel: sdg: assuming drive cache: write through Nov 17 15:25:06 norbert kernel: SCSI device sdg: 4078592 512-byte hdwr sectors (2088 MB) Nov 17 15:25:06 norbert kernel: sdg: Write Protect is off Nov 17 15:25:06 norbert kernel: sdg: Mode Sense: 0f 00 00 00 Nov 17 15:25:06 norbert kernel: sdg: assuming drive cache: write through Nov 17 15:25:06 norbert kernel: sdg: sdg1 Nov 17 15:25:06 norbert kernel: sd 11:0:0:0: Attached scsi disk sdg Nov 17 15:25:06 norbert kernel: sd 11:0:0:0: Attached scsi generic sg6 type 0 Nov 17 15:25:06 norbert kernel: usb-storage: device scan complete Nov 17 15:25:07 norbert hald: mounted /dev/sdg1 on behalf of uid 0
So my question is, is this something to write a bug report about? Is there anything more I can do to try to pinpoint where my problem is? Regards Birger Kollstrand Arendal Norway --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
"Birger Kollstrand"
Hi,
I have looked around in bug reports and in the factory mailing list but have not found the same problem.
in that case: please report this in bugzilla... Andreas -- Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj/ SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
I found the problem.
I was logged in on two graphical terminal windows. One as root and one
as as normal user. I was working in the user GUI. It seems like it was
random which user got the ownership.
If I only run the user GUI then it seems to work correctly each time.
Would it be a solution that the group was set to "users" or that the
owner was set to the user that responds to the "Memory card" pop up
window?
Do you still want a bugzilla on it?
Regards Birger
On 17/11/06, Andreas Jaeger
"Birger Kollstrand"
writes: Hi,
I have looked around in bug reports and in the factory mailing list but have not found the same problem.
in that case: please report this in bugzilla...
Andreas -- Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj/ SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Am Freitag, 17. November 2006 15:20 schrieb Birger Kollstrand:
I found the problem.
I was logged in on two graphical terminal windows. One as root and one as as normal user. I was working in the user GUI. It seems like it was random which user got the ownership.
If I only run the user GUI then it seems to work correctly each time.
Would it be a solution that the group was set to "users" or that the owner was set to the user that responds to the "Memory card" pop up window?
The moment the popup appears the device is already mounted as people want their devices to be mounted independently from these popups. So this is basically impossible to solve unless we add support almost everywhere to find out what user you're just looking at (which is very hard and only useful for a handful of use cases and as such would be closed as WONTFIX ;( Greetings, Stephan --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
"Birger Kollstrand"
I found the problem.
I was logged in on two graphical terminal windows. One as root and one as as normal user. I was working in the user GUI. It seems like it was random which user got the ownership.
If I only run the user GUI then it seems to work correctly each time.
Would it be a solution that the group was set to "users" or that the owner was set to the user that responds to the "Memory card" pop up window?
Do you still want a bugzilla on it?
As Enhancement or minor - for discussion perhaps. This is really a corner case but might bit us in other areas... Andreas -- Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj/ SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
On Friday 17 November 2006 16:29, Andreas Jaeger wrote:
As Enhancement or minor - for discussion perhaps. This is really a corner case but might bit us in other areas...
It reminds me of an other bug present in 10.0 as well (media found dialog pops up for all users), but to be honest I didn't checked the ownership there as it always worked well. Ok, to be more concrete: what will happen if there is a server used for LTSP clients, with 10 different users logged in to it, running KDE and somebody inserts a media in the server itself? Will it be mounted as the user sitting in front of the media or with the permission of some random user logged in? Unfortunately I cannot test it as I won't update the production server unless 10.2 comes out and I play a little bit with it at home. ;-) Andras -- Quanta Plus developer - http://quanta.kdewebdev.org K Desktop Environment - http://www.kde.org
Am Freitag, 17. November 2006 18:54 schrieb Andras Mantia:
On Friday 17 November 2006 16:29, Andreas Jaeger wrote:
As Enhancement or minor - for discussion perhaps. This is really a corner case but might bit us in other areas...
It reminds me of an other bug present in 10.0 as well (media found dialog pops up for all users), but to be honest I didn't checked the ownership there as it always worked well. Ok, to be more concrete: what will happen if there is a server used for LTSP clients, with 10 different users logged in to it, running KDE and somebody inserts a media in the server itself? Will it be mounted as
Non-local users won't have permissions to mount. No idea if this works either. Greetings, Stephan --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
I was logged in on two graphical terminal windows. One as root and one as as normal user. I was working in the user GUI. It seems like it was random which user got the ownership.
Do you still want a bugzilla on it?
As Enhancement or minor - for discussion perhaps. This is really a corner case but might bit us in other areas...
Other cases are less "corner" and have a similar problem: remote desktop login via kdm. Let's say a user is logged into bigbox - USB handling is fine. Another user on smallbox uses the kdm on smallbox to get a KDE session on bigbox - there's no way this second user can get usable USB device handling. Plugging into bigbox makes it owned by the first user, plugging it into smallbox makes it inaccesssible to everyone - the users's everything runs on bigbox. The kdm on smallbox doesn't even allow to open another session on smallbox (but does on bigbox...). I am of course ignoring the command line here. However there is no graphical solution. I would think that in a family there may well be a new and an old computer, creating this kind of situation. Volker -- Volker Kuhlmann is list0570 with the domain in header http://volker.dnsalias.net/ Please do not CC list postings to me. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
The bug was resolved in the package hal-remgr, but the new package
are'nt in the repos today.
rpm -q --changelog hal-resmgr | head
to verify that your hal-resmgr has bug 218393 fixed:
-----------------------------------------------------------------------
* Mon Nov 13 2006 - lnussel@suse.de
- move all resmgr fdi files to /etc so hal applies them last (#218393)
Regards
2006/11/17, Birger Kollstrand
Hi,
I have looked around in bug reports and in the factory mailing list but have not found the same problem.
This is in openSUSE 10.2 Beta 2. It is a fresh install from DVD.
I have a 128Mb SD memory card that I use in a USB memory card reader. It mounts and I can read files, but not write. The ownership gets set to root/root and only owner has write access,
The same happens when I connect my Nokia N80 with a 2 Gb memory card and a 128Mb no name USB memory stick
Oddly enough, when I connect my Nokia 770 which have a 2Gb MMC card it mounts as expected with the user as owner.
This is all done through the same USB memory card reader which also has a USB port.
I checked with the phone connected to another USB port and it behaves the same so I do count the USB memory card reader out of the problem.
/var/log/messages from the N80 connection: Nov 17 15:23:27 norbert kernel: usb 2-3: new full speed USB device using ohci_hcd and address 6 Nov 17 15:23:27 norbert kernel: usb 2-3: new device found, idVendor=0421, idProduct=0446 Nov 17 15:23:27 norbert kernel: usb 2-3: new device strings: Mfr=1, Product=2, SerialNumber=3 Nov 17 15:23:27 norbert kernel: usb 2-3: Product: Nokia N80 Nov 17 15:23:27 norbert kernel: usb 2-3: Manufacturer: Nokia Nov 17 15:23:27 norbert kernel: usb 2-3: SerialNumber: 358361005186063 Nov 17 15:23:27 norbert kernel: usb 2-3: configuration #1 chosen from 1 choice Nov 17 15:23:27 norbert kernel: scsi10 : SCSI emulation for USB Mass Storage devices Nov 17 15:23:27 norbert kernel: usb-storage: device found at 6 Nov 17 15:23:27 norbert kernel: usb-storage: waiting for device to settle before scanning Nov 17 15:23:28 norbert kernel: Vendor: Model: Rev: Nov 17 15:23:28 norbert kernel: Type: Direct-Access ANSI SCSI revision: 00 Nov 17 15:23:28 norbert kernel: SCSI device sdh: 3988232 512-byte hdwr sectors (2042 MB) Nov 17 15:23:28 norbert kernel: sdh: Write Protect is off Nov 17 15:23:28 norbert kernel: sdh: Mode Sense: 03 00 00 00 Nov 17 15:23:28 norbert kernel: sdh: assuming drive cache: write through Nov 17 15:23:28 norbert kernel: SCSI device sdh: 3988232 512-byte hdwr sectors (2042 MB) Nov 17 15:23:28 norbert kernel: sdh: Write Protect is off Nov 17 15:23:28 norbert kernel: sdh: Mode Sense: 03 00 00 00 Nov 17 15:23:28 norbert kernel: sdh: assuming drive cache: write through Nov 17 15:23:28 norbert kernel: sdh: Nov 17 15:23:28 norbert kernel: sd 10:0:0:0: Attached scsi removable disk sdh Nov 17 15:23:28 norbert kernel: sd 10:0:0:0: Attached scsi generic sg7 type 0 Nov 17 15:23:28 norbert kernel: usb-storage: device scan complete Nov 17 15:23:30 norbert hald: mounted /dev/sdh on behalf of uid 0
From the successfull N770 : Nov 17 15:25:04 norbert kernel: ohci_hcd 0000:00:02.0: wakeup Nov 17 15:25:05 norbert kernel: usb 1-2: new full speed USB device using ohci_hcd and address 12 Nov 17 15:25:05 norbert kernel: usb 1-2: new device found, idVendor=0421, idProduct=0431 Nov 17 15:25:05 norbert kernel: usb 1-2: new device strings: Mfr=1, Product=2, SerialNumber=3 Nov 17 15:25:05 norbert kernel: usb 1-2: Product: Nokia 770 Nov 17 15:25:05 norbert kernel: usb 1-2: Manufacturer: Nokia Nov 17 15:25:05 norbert kernel: usb 1-2: SerialNumber: 3230204F6374 Nov 17 15:25:05 norbert kernel: usb 1-2: configuration #1 chosen from 1 choice Nov 17 15:25:05 norbert kernel: scsi11 : SCSI emulation for USB Mass Storage devices Nov 17 15:25:05 norbert kernel: usb-storage: device found at 12 Nov 17 15:25:05 norbert kernel: usb-storage: waiting for device to settle before scanning Nov 17 15:25:06 norbert kernel: Vendor: Nokia Model: 770 Rev: 0308 Nov 17 15:25:06 norbert kernel: Type: Direct-Access ANSI SCSI revision: 02 Nov 17 15:25:06 norbert kernel: SCSI device sdg: 4078592 512-byte hdwr sectors (2088 MB) Nov 17 15:25:06 norbert kernel: sdg: Write Protect is off Nov 17 15:25:06 norbert kernel: sdg: Mode Sense: 0f 00 00 00 Nov 17 15:25:06 norbert kernel: sdg: assuming drive cache: write through Nov 17 15:25:06 norbert kernel: SCSI device sdg: 4078592 512-byte hdwr sectors (2088 MB) Nov 17 15:25:06 norbert kernel: sdg: Write Protect is off Nov 17 15:25:06 norbert kernel: sdg: Mode Sense: 0f 00 00 00 Nov 17 15:25:06 norbert kernel: sdg: assuming drive cache: write through Nov 17 15:25:06 norbert kernel: sdg: sdg1 Nov 17 15:25:06 norbert kernel: sd 11:0:0:0: Attached scsi disk sdg Nov 17 15:25:06 norbert kernel: sd 11:0:0:0: Attached scsi generic sg6 type 0 Nov 17 15:25:06 norbert kernel: usb-storage: device scan complete Nov 17 15:25:07 norbert hald: mounted /dev/sdg1 on behalf of uid 0
So my question is, is this something to write a bug report about? Is there anything more I can do to try to pinpoint where my problem is?
Regards Birger Kollstrand Arendal Norway --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
participants (6)
-
Andras Mantia
-
Andreas Jaeger
-
Birger Kollstrand
-
Juan Erbes
-
Stephan Kulow
-
Volker Kuhlmann