View previous topic :: View next topic |
Author |
Message |
Biker Apprentice
Joined: 11 Jun 2003 Posts: 170 Location: A very dark, cold and moisty place...
|
Posted: Thu Oct 06, 2005 5:03 pm Post subject: How can I restrict access to mount a USB key? |
|
|
I have a working setup with udev for USB keys. If I plug in a USB key and use gnome-volume-manager the USB key show up on the Gnome desktop. This works for all users.
My problem is that I'd like to reserve this funtionality for selected users. (Or actually, to restrict some users.)
I guess creating a specific group is a first step in the right direction, but what file/program should I chgrp on to acheive what I need?
Or do you approach this in a different way?
Biker _________________ The Internet never forgets.
Where 'never' points in the direction of a moment in the very, very far future. |
|
Back to top |
|
|
boogerman Apprentice
Joined: 10 Dec 2004 Posts: 253 Location: Tennessee
|
Posted: Thu Oct 06, 2005 7:03 pm Post subject: |
|
|
It was my impression that you could put gid=1234 (or whatever you give it) in the options tab of the /etc/fstab.
What I did on my computer was recursively change the permissions on the mount point to 0770. I think the command is chgrp -R <group> <mount point> to change the group to the new group, but I always have to type things in wrong a couple of imes before I get them right so don't et your life on that syntax. Then do this chmod -R 0770 <mount point> (again, don't bet you lif on the syntax). That should get it done.
Good luck. |
|
Back to top |
|
|
Biker Apprentice
Joined: 11 Jun 2003 Posts: 170 Location: A very dark, cold and moisty place...
|
Posted: Fri Oct 07, 2005 4:59 pm Post subject: |
|
|
boogerman wrote: | It was my impression that you could put gid=1234 (or whatever you give it) in the options tab of the /etc/fstab. |
Thing is that the entry in fstab is automatically created and the mount point as well, like /media/usbkey , owned by the user logged in to Gnome when the key is inserted. I'm not around at this moment...
I'd like to find a way so that when a "non-authorized" user plugs in the USB-key, "nothing happens".
Thanks anyway for your thoughts.
Biker _________________ The Internet never forgets.
Where 'never' points in the direction of a moment in the very, very far future. |
|
Back to top |
|
|
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Sun Oct 09, 2005 4:20 pm Post subject: |
|
|
google gave me this : http://gentoo-wiki.com/HOWTO_gnome-volume-manager . see near bottom.
HTH _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
|
|