Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
automounting group
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
bjlockie
Veteran
Veteran


Joined: 18 Oct 2002
Posts: 1186
Location: Canada

PostPosted: Fri Dec 29, 2006 4:32 am    Post subject: automounting group Reply with quote

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
View user's profile Send private message
bjlockie
Veteran
Veteran


Joined: 18 Oct 2002
Posts: 1186
Location: Canada

PostPosted: Fri Dec 29, 2006 5:44 am    Post subject: Reply with quote

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
View user's profile Send private message
bjlockie
Veteran
Veteran


Joined: 18 Oct 2002
Posts: 1186
Location: Canada

PostPosted: Fri Dec 29, 2006 4:17 pm    Post subject: Reply with quote

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. :-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum