View previous topic :: View next topic |
Author |
Message |
bjlockie Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 18 Oct 2002 Posts: 1186 Location: Canada
|
Posted: Fri Dec 29, 2006 4:32 am Post subject: automounting group |
|
|
I can mount a usb pendrive as me:users but a usb hard drive is /dev/sdg1 as root:root
I can't unmount it from KDE.
Is there a way to set the group in a udev rule instead of using a hard coded /etc/fstab entry? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bjlockie Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 18 Oct 2002 Posts: 1186 Location: Canada
|
Posted: Fri Dec 29, 2006 5:44 am Post subject: |
|
|
I tried putting the following in /usr/share/hal/fdi/policy/95userpolicy/removablentfs.fdi
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- -*- SGML -*- -->
<deviceinfo version="0.2">
<device>
<match key="volume.fstype" string="ext2">
<append key="volume.mount.valid_options" type="strlist">uid=rjl,gid=users</append>
</match>
</device>
</deviceinfo>
The drive still mounts as root:root
I think the file is being read because the drive fails to mount with some syntaxes. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bjlockie Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 18 Oct 2002 Posts: 1186 Location: Canada
|
Posted: Fri Dec 29, 2006 4:17 pm Post subject: |
|
|
Well. I was stupid.
I did a chown to change the ownership and that seems to be persistent.
I still can't unmount as a user though. ![Smile :-)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|