Re: [CentOS] UDEV rule allow users to unmount USB stick
Scott Silva wrote: on 12-22-2008 4:19 PM Philip Manuel spake the following: I'm trying to understand why a normal user is not allowed to unmount their USB stick? I think it is most likely a udev rule. does anyone know ? Thanks Phil. Is it something simple like a shell or something opened into that directory? No if the user uses the umount command they get permission denied, not device is busy. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] UDEV rule allow users to unmount USB stick
on 12-22-2008 4:19 PM Philip Manuel spake the following: I'm trying to understand why a normal user is not allowed to unmount their USB stick? I think it is most likely a udev rule. does anyone know ? Thanks Phil. Is it something simple like a shell or something opened into that directory? -- MailScanner is like deodorant... You hope everybody uses it, and you notice quickly if they don't signature.asc Description: OpenPGP digital signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] UDEV rule allow users to unmount USB stick
On Mon, Dec 22, 2008 at 7:56 PM, Philip Manuel p...@zomojo.com wrote: snip Are we talking about USB Memory here? If so, I have not seen this issue. I've never used USB Memory while logged in as root. I'm using CentOS 5 (32 bit). snip Yes the usb stick/memory mounts correctly, but then they are not allowed to unmount it, using for example umount /media/device We are using Centos5.2 64bit I see that you are using 64 bit, I'm using 32 bit, but I doubt that this would work differently, between the 2 versions of the OS. As Mark (mhr) wrote, if you use GNOME, just right click the icon, to unmount the USB stick. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] UDEV rule allow users to unmount USB stick
Lanny Marcus wrote: On Mon, Dec 22, 2008 at 8:46 PM, MHR mhullr...@gmail.com wrote: On Mon, Dec 22, 2008 at 4:19 PM, Philip Manuel p...@zomojo.com wrote: I'm trying to understand why a normal user is not allowed to unmount their USB stick? I think it is most likely a udev rule. does anyone know ? If I understand this correctly, it's a mount/umount rule - normal users cannot run root commands. They are written to disallow normal users from performing root tasks. However, if you are using gnome, you can use the gnome-umount command (which is the equivalent of right-clicking the icon and selecting Unmount). I suspect there is a similar analogue in KDE. Good explanation Mark. I use GNOME and I have zero problems with this. Lanny Mark's assumption was correct. In KDE, the right-click menu item is Safely remove. I find it interesting, though, that root can manually mount a USB drive from the command line and any user can safely remove it via KDE. For example, I have this line in my fstab for a backup hard drive LABEL=OT3 /media/OT3 ext3 noauto,user,rw Normally, it's mounted and unmounted by the backup script but I discovered that if root manually mounts it [r...@mavis ~]# mount /media/OT3 [r...@mavis ~]# mount snip /dev/sda1 on /media/OT3 type ext3 (rw,noexec,nosuid,nodev) [r...@mavis ~]# And I try to unmount it as my normal user, I run into the behavior that is spelled out in the man page: [...@mavis ~]$ umount /media/OT3 umount: only root can unmount LABEL=OT3 from /media/OT3 [...@mavis ~]$ However, I CAN unmount it using KDE. --*USUALLY*-- Occasionally, the desktop icon will indicate unmounted but either attempting to mount the drive or manually examining /etc/mtab reveals that the drive is stll mounted. If one is to believe the mount man page, there is/are 1 or 2 bug(s) here. So, Mark, KDE has a true analogue only if GNOME is similarly broken. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] UDEV rule allow users to unmount USB stick
On Tue, Dec 23, 2008 at 6:39 AM, Robert kerp...@sbcglobal.net wrote: Mark's assumption was correct. In KDE, the right-click menu item is Safely remove. I find it interesting, though, that root can manually mount a USB drive from the command line and any user can safely remove it via KDE. From what I can see, this does not happen in Gnome because Gnome doesn't recognize a manually mounted USB drive at all. If I plug in a USB drive, then use the right-click Unmount to unmount it, then mount it as root, Gnome does not see it (!) and does not post the icon for it. It shows up in df and most other command line utilities, and I can see it in nautilus as well (duh - it's mounted on a fixed mount point!), but Gnome doesn't see it the same way. So, no, Gnome isn't broken the same way as KDE, it's different :-) mhr ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] UDEV rule allow users to unmount USB stick
Lanny Marcus wrote: On Mon, Dec 22, 2008 at 7:56 PM, Philip Manuel p...@zomojo.com wrote: snip Are we talking about USB Memory here? If so, I have not seen this issue. I've never used USB Memory while logged in as root. I'm using CentOS 5 (32 bit). snip Yes the usb stick/memory mounts correctly, but then they are not allowed to unmount it, using for example umount /media/device We are using Centos5.2 64bit I see that you are using 64 bit, I'm using 32 bit, but I doubt that this would work differently, between the 2 versions of the OS. As Mark (mhr) wrote, if you use GNOME, just right click the icon, to unmount the USB stick. You are correct we could use konqueror, we use kde, to unmount but if a CD/DVD is mounted correctly to allow a user to unmount why can't a USB memory device ? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] UDEV rule allow users to unmount USB stick
On Mon, Dec 22, 2008 at 7:19 PM, Philip Manuel p...@zomojo.com wrote: I'm trying to understand why a normal user is not allowed to unmount their USB stick? I think it is most likely a udev rule. does anyone know ? Are we talking about USB Memory here? If so, I have not seen this issue. I've never used USB Memory while logged in as root. I'm using CentOS 5 (32 bit). ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] UDEV rule allow users to unmount USB stick
Lanny Marcus wrote: On Mon, Dec 22, 2008 at 7:19 PM, Philip Manuel p...@zomojo.com wrote: I'm trying to understand why a normal user is not allowed to unmount their USB stick? I think it is most likely a udev rule. does anyone know ? Are we talking about USB Memory here? If so, I have not seen this issue. I've never used USB Memory while logged in as root. I'm using CentOS 5 (32 bit). ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Yes the usb stick/memory mounts correctly, but then they are not allowed to unmount it, using for example umount /media/device We are using Centos5.2 64bit ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] UDEV rule allow users to unmount USB stick
On Mon, Dec 22, 2008 at 4:19 PM, Philip Manuel p...@zomojo.com wrote: I'm trying to understand why a normal user is not allowed to unmount their USB stick? I think it is most likely a udev rule. does anyone know ? Thanks If I understand this correctly, it's a mount/umount rule - normal users cannot run root commands. They are written to disallow normal users from performing root tasks. However, if you are using gnome, you can use the gnome-umount command (which is the equivalent of right-clicking the icon and selecting Unmount). I suspect there is a similar analogue in KDE. mhr ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos