mangobrain Tux's lil' helper
Joined: 11 Sep 2003 Posts: 109
|
Posted: Fri Apr 25, 2008 10:45 am Post subject: [Solved?] HAL/gnome-mount not setting uid on mount points |
|
|
Hullo peeps.
I'm running HAL 0.5.10 and gnome-mount 0.6, both updated to ~x86 today to try and fix this problem, with no luck. Basically, when inserting an SD card, it is detected, mounted, but I cannot write to it as the logged-in user because the mount point is owned by root:root and not world writeable.
Output of "id haldaemon":
Quote: | uid=101(haldaemon) gid=407(haldaemon) groups=407(haldaemon),6(disk),11(floppy),
19(cdrom),80(cdrw),85(usb),5039(plugdev) |
Output of "id philip" (the user logged in to GNOME when I insert the device):
Quote: | uid=5032(philip) gid=5032(philip) groups=5032(philip),6(disk),
10(wheel),11(floppy),18(audio),19(cdrom),
27(video),35(games),100(users),250(portage),5038(qemu),
5039(plugdev),5044(vmware),5049(wireshark),600(devel)
|
As you can see, both are members of disk and plugdev.
Also, from syslog, when the device is inserted:
Quote: | Apr 25 11:33:12 [hald] mounted /dev/sda1 on behalf of uid 5032 |
So hald has the correct UID for the user requesting the device be mounted, it just doesn't honour it.
The device is /dev/sda1, and there is nothing related to it in fstab; thus, the mountpoint itself is /media/disk (which is fine AFAIK). "mount" says the device is mounted read-write. I'm sure this worked until recently. Any ideas? |
|