Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Hide USB sticks from users?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 762

PostPosted: Wed Aug 20, 2014 11:47 pm    Post subject: Hide USB sticks from users? Reply with quote

Can I prevent certain (or all) USB sticks from appearing in Thunar under "DEVICES"? Sometimes users mount them by clicking on them and it causes problems (potential data alteration, USB bandwidth shortage). I do like to store the USB sticks in the USB hub so I can access them as necessary.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5574

PostPosted: Thu Aug 21, 2014 4:16 am    Post subject: Reply with quote

Well, "appearing" might be hard, "mounting by users other than <foo>" should be just a matter of coming up with correct rule for polkit (as thunar most likely translates to udisks).
Back to top
View user's profile Send private message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 762

PostPosted: Thu Aug 21, 2014 1:53 pm    Post subject: Reply with quote

Alright, I think I'm just gonna yank em from the machine.
Back to top
View user's profile Send private message
Ant P.
Advocate
Advocate


Joined: 18 Apr 2009
Posts: 2363
Location: UK

PostPosted: Sat Aug 23, 2014 1:20 am    Post subject: Reply with quote

You could use udev rules so the drives' /dev/sd* are set to a specific gid, and then use the "group" fstab option so only people added to that group (i.e. yourself) can mount them.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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