View Full Version : disable USB drive for guest acc.
flex567
March 8th, 2015, 01:39 AM
Is it possible to disable all USB drives for non-admin(guest) user accounts? I have linux mint 17.1 ?
UltimateCat
March 8th, 2015, 02:05 AM
You could restrict that user from belonging to a certain group.
For example on my Mint 17 my user has privileges to the following groups.
adm cdrom sudo dip plugdev lpadmin sambashare
If I'm not mistaken you would just not give the user privileges to the plugdev (think that's usb) and that way a guest wouldn't be able to use the usb ports.
http://forums.linuxmint.com/viewtopic.php?f=90&t=44710
http://linux.die.net/man/1/chmod
flex567
March 8th, 2015, 10:58 AM
when I type this in terminal I get:
adm: command not found
Holger_Gehrke
March 8th, 2015, 11:27 AM
That was no command, it was the output of one, the 'groups' command specifically. It lists the groups a user is a member of. So to remove the user 'guest' from the 'plugdev' group, you'd get his current list of group memberships with
groups guest
and then change the user with usermod
usermod guest -G "replace this with a comma separated list of groups 'guest' is part of"
coffeecat
March 8th, 2015, 11:29 AM
Thread moved to Mint sub-forum.
flex567
March 8th, 2015, 12:09 PM
when I type: groups guest
I get: guest : guest nopasswdlogin
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.