Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How can I restrict access to mount a USB key?
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
Biker
Apprentice
Apprentice


Joined: 11 Jun 2003
Posts: 170
Location: A very dark, cold and moisty place...

PostPosted: Thu Oct 06, 2005 5:03 pm    Post subject: How can I restrict access to mount a USB key? Reply with quote

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


Joined: 10 Dec 2004
Posts: 253
Location: Tennessee

PostPosted: Thu Oct 06, 2005 7:03 pm    Post subject: Reply with quote

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


Joined: 11 Jun 2003
Posts: 170
Location: A very dark, cold and moisty place...

PostPosted: Fri Oct 07, 2005 4:59 pm    Post subject: Reply with quote

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


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Sun Oct 09, 2005 4:20 pm    Post subject: Reply with quote

google gave me this : http://gentoo-wiki.com/HOWTO_gnome-volume-manager . see near bottom.

HTH 8)
_________________
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
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