* [gentoo-user] Hal, d-bus, automount, premissions
@ 2005-10-07 12:30 Andreas Karlsson
2005-10-07 14:09 ` [gentoo-user] " Remy Blank
2005-10-07 17:25 ` [gentoo-user] Hal, d-bus, automount, premissions Robert Svoboda
0 siblings, 2 replies; 11+ messages in thread
From: Andreas Karlsson @ 2005-10-07 12:30 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1107 bytes --]
Hello,
I am getting quite frustrated over such a simple thing. Now, I have three USB
storage devices: a USB flash disk, a mobile phone and a camera. I want those
to automount with my users permissions. They now mounts under /media/usbdisk
with root permissions. Where on earth do I find the configuration files? I´ve
checked /etc/hal, /etc/dbus-1, /etc/udev, /etc/ivman, but no where is there a
simple file where I can say "ok, all /dev/sd* will be mounted automatilcy
under /media/usbdisk* with gid=users, uid=whatever, umask=0077".
It drives me nuts. I did search the forums.gentoo.org, but all I found was
some unsolved threads. Anyone have any ideas?
This is what my fstab lookslike with the USB flash disk automounted:
/dev/sde1 /media/usbdisk ext3
user,exec,noauto,noatime,sync,managed 0 0
and ls -la /media/ gives:
drwxr-xr-x 3 root root 1024 Jan 7 2005 usbdisk
and thats my big problem. If I chmod/chown the folder it will not be saved
till next time I mount the disk (that´s not suprising).
Best regards,
Andreas Karlsson
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* [gentoo-user] Re: Hal, d-bus, automount, premissions
2005-10-07 12:30 [gentoo-user] Hal, d-bus, automount, premissions Andreas Karlsson
@ 2005-10-07 14:09 ` Remy Blank
2005-10-07 18:05 ` Andreas Karlsson
2005-10-07 17:25 ` [gentoo-user] Hal, d-bus, automount, premissions Robert Svoboda
1 sibling, 1 reply; 11+ messages in thread
From: Remy Blank @ 2005-10-07 14:09 UTC (permalink / raw
To: gentoo-user
Andreas Karlsson wrote:
> I am getting quite frustrated over such a simple thing. Now, I have three USB
> storage devices: a USB flash disk, a mobile phone and a camera. I want those
> to automount with my users permissions. They now mounts under /media/usbdisk
> with root permissions. Where on earth do I find the configuration files? I´ve
> checked /etc/hal, /etc/dbus-1, /etc/udev, /etc/ivman, but no where is there a
> simple file where I can say "ok, all /dev/sd* will be mounted automatilcy
> under /media/usbdisk* with gid=users, uid=whatever, umask=0077".
>
> It drives me nuts. I did search the forums.gentoo.org, but all I found was
> some unsolved threads. Anyone have any ideas?
>
> This is what my fstab lookslike with the USB flash disk automounted:
>
> /dev/sde1 /media/usbdisk ext3
> user,exec,noauto,noatime,sync,managed 0 0
The fstab is updated by hald. And the entry looks ok (it has the "user"
option), except that I would remove "sync" for flash disks, as it will
kill them in no time.
> and ls -la /media/ gives:
>
> drwxr-xr-x 3 root root 1024 Jan 7 2005 usbdisk
>
> and thats my big problem. If I chmod/chown the folder it will not be saved
> till next time I mount the disk (that´s not suprising).
This is due to having root mount the disk. Your user actually would have
the permissions to mount it, but it's root that's doing the job.
The program actually doing the mount is ivman. You seem to be running it
as root (probably started in the default runlevel, check with
rc-status). Try running ivman as a normal user, for example by adding a
symlink to the ivman binary in ~/.kde/Autostart (not sure about the
location) so that it is started when you log in (if you use kde), and
copy your ivman configuration to ~/.ivman. As it will then run as your
user, it will also mount disks with your permissions.
-- Remy
Remove underscore and suffix in reply address for a timely response.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Hal, d-bus, automount, premissions
2005-10-07 12:30 [gentoo-user] Hal, d-bus, automount, premissions Andreas Karlsson
2005-10-07 14:09 ` [gentoo-user] " Remy Blank
@ 2005-10-07 17:25 ` Robert Svoboda
2005-10-07 18:06 ` Andreas Karlsson
1 sibling, 1 reply; 11+ messages in thread
From: Robert Svoboda @ 2005-10-07 17:25 UTC (permalink / raw
To: gentoo-user
* Andreas Karlsson <hermes@home.se> [2005-10-07 14:50]:
> Hello,
Hi,
[...]
> It drives me nuts. I did search the forums.gentoo.org, but all I found was
> some unsolved threads. Anyone have any ideas?
check this out:
http://gentoo-wiki.com/HOWTO_ivman
Robert
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Re: Hal, d-bus, automount, premissions
2005-10-07 14:09 ` [gentoo-user] " Remy Blank
@ 2005-10-07 18:05 ` Andreas Karlsson
2005-10-07 21:36 ` Neil Bothwick
0 siblings, 1 reply; 11+ messages in thread
From: Andreas Karlsson @ 2005-10-07 18:05 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1139 bytes --]
On Friday 07 October 2005 16.09, Remy Blank wrote:
> Andreas Karlsson wrote:
>
> The fstab is updated by hald. And the entry looks ok (it has the "user"
> option), except that I would remove "sync" for flash disks, as it will
> kill them in no time.
Yes, I did notice that hald is adding the line to fstab.
> The program actually doing the mount is ivman. You seem to be running it
> as root (probably started in the default runlevel, check with
> rc-status). Try running ivman as a normal user, for example by adding a
> symlink to the ivman binary in ~/.kde/Autostart (not sure about the
> location) so that it is started when you log in (if you use kde), and
> copy your ivman configuration to ~/.ivman. As it will then run as your
> user, it will also mount disks with your permissions.
Thanks. I tried it, but it didn´t work. ivman is running, but whenever I plug
in a USB-device, it is not automounted. If I do a 'mount /media/usbdisk' as
root it mounts. So this leads me to think that there are some major
permission problems somewhere, but I don´t know where to look.
Best regards,
Andreas Karlsson
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Hal, d-bus, automount, premissions
2005-10-07 17:25 ` [gentoo-user] Hal, d-bus, automount, premissions Robert Svoboda
@ 2005-10-07 18:06 ` Andreas Karlsson
0 siblings, 0 replies; 11+ messages in thread
From: Andreas Karlsson @ 2005-10-07 18:06 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 507 bytes --]
On Friday 07 October 2005 19.25, Robert Svoboda wrote:
> * Andreas Karlsson <hermes@home.se> [2005-10-07 14:50]:
> > Hello,
>
> Hi,
>
> [...]
>
> > It drives me nuts. I did search the forums.gentoo.org, but all I found
> > was some unsolved threads. Anyone have any ideas?
>
> check this out:
> http://gentoo-wiki.com/HOWTO_ivman
Yes, I did use that guide when I installed ivman. Thanks for the pointer
though.
I am now looking into Remy Blanks answer.
Best regards,
Andreas Karlsson
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Re: Hal, d-bus, automount, premissions
2005-10-07 18:05 ` Andreas Karlsson
@ 2005-10-07 21:36 ` Neil Bothwick
2005-10-08 6:37 ` Andreas Karlsson
0 siblings, 1 reply; 11+ messages in thread
From: Neil Bothwick @ 2005-10-07 21:36 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 739 bytes --]
On Fri, 7 Oct 2005 20:05:22 +0200, Andreas Karlsson wrote:
> Thanks. I tried it, but it didn´t work. ivman is running, but whenever
> I plug in a USB-device, it is not automounted.
Are you running ivman as a user as well as root? ISTR you are supposed to
run two copies.
> If I do a
> 'mount /media/usbdisk' as root it mounts. So this leads me to think
> that there are some major permission problems somewhere, but I don´t
> know where to look.
Naturally, because you are mounting as root. fstab-sync is evil anyway,
mounting with pmount is much nicer, and mounts as the current user.
Which desktop are you using?
--
Neil Bothwick
Those who can, do. Those who cannot, teach. Those who cannot teach, HACK!
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Re: Hal, d-bus, automount, premissions
2005-10-07 21:36 ` Neil Bothwick
@ 2005-10-08 6:37 ` Andreas Karlsson
2005-10-08 7:03 ` Rumen Yotov
2005-10-09 14:35 ` Neil Bothwick
0 siblings, 2 replies; 11+ messages in thread
From: Andreas Karlsson @ 2005-10-08 6:37 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 704 bytes --]
On Friday 07 October 2005 23.36, Neil Bothwick wrote:
> On Fri, 7 Oct 2005 20:05:22 +0200, Andreas Karlsson wrote:
> > Thanks. I tried it, but it didn´t work. ivman is running, but whenever
> > I plug in a USB-device, it is not automounted.
>
> Are you running ivman as a user as well as root? ISTR you are supposed to
> run two copies.
I´ve tried to run it as both root and a regular users.
>
> Naturally, because you are mounting as root. fstab-sync is evil anyway,
> mounting with pmount is much nicer, and mounts as the current user.
I´ll give pmount a try. Does that mean I can get rid of ivman?
> Which desktop are you using?
KDE 3.4.2.
Best regards,
Andreas Karlsson
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Re: Hal, d-bus, automount, premissions
2005-10-08 6:37 ` Andreas Karlsson
@ 2005-10-08 7:03 ` Rumen Yotov
2005-10-08 7:35 ` Andreas Karlsson
2005-10-09 14:35 ` Neil Bothwick
1 sibling, 1 reply; 11+ messages in thread
From: Rumen Yotov @ 2005-10-08 7:03 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1401 bytes --]
On Sat, 8 Oct 2005 08:37:31 +0200
Andreas Karlsson <hermes@home.se> wrote:
> On Friday 07 October 2005 23.36, Neil Bothwick wrote:
> > On Fri, 7 Oct 2005 20:05:22 +0200, Andreas Karlsson wrote:
> > > Thanks. I tried it, but it didn´t work. ivman is running, but
> > > whenever I plug in a USB-device, it is not automounted.
> >
> > Are you running ivman as a user as well as root? ISTR you are
> > supposed to run two copies.
>
> I´ve tried to run it as both root and a regular users.
>
> >
> > Naturally, because you are mounting as root. fstab-sync is evil
> > anyway, mounting with pmount is much nicer, and mounts as the
> > current user.
>
> I´ll give pmount a try. Does that mean I can get rid of ivman?
>
> > Which desktop are you using?
>
> KDE 3.4.2.
>
> Best regards,
> Andreas Karlsson
>
Hi,
This trio (dbus-hal-ivman) works for me, not always tough.
IIRC one of them depends on 'dnotify' which is a kernel-patch, included
in gentoo-sources at least. As 'dnotify' changes frequently (for new
kernels) the stable dbus-hal-ivman doesn't work with 2.6.13, but the
testing (~x86) work OK. It's logical as 2.6.12-rX is still the stable
one (i'm with 2.6.13 now).
Warning: don't use this with vfat-fs (USB-pens) as it can damage them
- sync option used (workaround needed, then things work).
Search/read for more info, my experince here.
HTH.Rumen
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Re: Hal, d-bus, automount, premissions
2005-10-08 7:03 ` Rumen Yotov
@ 2005-10-08 7:35 ` Andreas Karlsson
0 siblings, 0 replies; 11+ messages in thread
From: Andreas Karlsson @ 2005-10-08 7:35 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 418 bytes --]
On Saturday 08 October 2005 09.03, Rumen Yotov wrote:
> Warning: don't use this with vfat-fs (USB-pens) as it can damage them
> - sync option used (workaround needed, then things work).
> Search/read for more info, my experince here.
Thank you for the input. I think I´ll try pmount, and if that desn´t work I´ll
unemerge ivman, and manually mount whatever I need to mount.
Best regards,
Andreas Karlsson
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Re: Hal, d-bus, automount, premissions
2005-10-08 6:37 ` Andreas Karlsson
2005-10-08 7:03 ` Rumen Yotov
@ 2005-10-09 14:35 ` Neil Bothwick
2005-10-09 17:14 ` [gentoo-user] Re: Hal, d-bus, automount, premissions [SOVED] Andreas Karlsson
1 sibling, 1 reply; 11+ messages in thread
From: Neil Bothwick @ 2005-10-09 14:35 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 553 bytes --]
On Sat, 8 Oct 2005 08:37:31 +0200, Andreas Karlsson wrote:
> > Naturally, because you are mounting as root. fstab-sync is evil
> > anyway, mounting with pmount is much nicer, and mounts as the current
> > user.
>
> I´ll give pmount a try. Does that mean I can get rid of ivman?
>
> > Which desktop are you using?
>
> KDE 3.4.2.
In that case, you don't need ivman, KDE takes care of it for you. See
http://gentoo-wiki.com/HOWTO_D-BUS,_HAL,_KDE_media:/
--
Neil Bothwick
Artificial Intelligence usually beats real stupidity.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Re: Hal, d-bus, automount, premissions [SOVED]
2005-10-09 14:35 ` Neil Bothwick
@ 2005-10-09 17:14 ` Andreas Karlsson
0 siblings, 0 replies; 11+ messages in thread
From: Andreas Karlsson @ 2005-10-09 17:14 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 616 bytes --]
On Sunday 09 October 2005 16.35, Neil Bothwick wrote:
> On Sat, 8 Oct 2005 08:37:31 +0200, Andreas Karlsson wrote:
> > > Naturally, because you are mounting as root. fstab-sync is evil
> > > anyway, mounting with pmount is much nicer, and mounts as the current
> > > user.
> >
> > I´ll give pmount a try. Does that mean I can get rid of ivman?
> >
> > > Which desktop are you using?
> >
> > KDE 3.4.2.
>
> In that case, you don't need ivman, KDE takes care of it for you. See
> http://gentoo-wiki.com/HOWTO_D-BUS,_HAL,_KDE_media:/
Thank you so much! That did it.
Best regards,
Andreas Karlsson
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2005-10-09 17:19 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-07 12:30 [gentoo-user] Hal, d-bus, automount, premissions Andreas Karlsson
2005-10-07 14:09 ` [gentoo-user] " Remy Blank
2005-10-07 18:05 ` Andreas Karlsson
2005-10-07 21:36 ` Neil Bothwick
2005-10-08 6:37 ` Andreas Karlsson
2005-10-08 7:03 ` Rumen Yotov
2005-10-08 7:35 ` Andreas Karlsson
2005-10-09 14:35 ` Neil Bothwick
2005-10-09 17:14 ` [gentoo-user] Re: Hal, d-bus, automount, premissions [SOVED] Andreas Karlsson
2005-10-07 17:25 ` [gentoo-user] Hal, d-bus, automount, premissions Robert Svoboda
2005-10-07 18:06 ` Andreas Karlsson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox