Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello.
I use Debian 8.6 amd64 and I like to know how can I limit my Linux for use devices? For example, no one can attach a USB storage or other devices. I mean is something like Windows OS policy. Please look at: http://woshub.com/how-to-disable-usb...-group-policy/
The simplest way to do it would be using traditional ownership and permissions. Find out what device file corresponds to each usb socket and set the world rights to none. Then only root can use it.
If you want some users to be able to use the device, assign it to a group that you have created, give the group appropriate rights and add those users to the group.
In any case, storage devices can't be used without being mounted, and only root can mount such a device if it's not listed in /etc/fstab as user-mountable.
Hello.
I use Debian 8.6 amd64 and I like to know how can I limit my Linux for use devices? For example, no one can attach a USB storage or other devices. I mean is something like Windows OS policy. Please look at: http://woshub.com/how-to-disable-usb...-group-policy/
Thank you.
You can look at the udev rules used when identifying devices and adding them to the /dev filesystem.
You can even disable things like USB storage permanently, yet still allow keyboard/mouse connections.
The advantage of using udev rules is that you can make usage permissions independent of where the device is actually plugged in. A udev rule can identify a device by its vendor and product ID and then set its ownership and permissions accordingly.
The trouble with udev rules is that there is a steep learning curve for actually writing them. And of course the vendor/product thing won't work for unknown devices that users may carry in their pockets.
blacklist the driver?
but idk, there's also internal usb devices, one wouldn't want to disable them.
however, drivers can be configured, too. that's where i'd look first.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.