Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
I'm disgusted with myself for not knowing the answer to this one, as I consider myself a fairly low-level hackerly type, but:
How do I disable the USB port on a machine? This is so that if a pendrive is stuck into it, nothing will happen, i.e. no viruses which can attack the machine etc.
The guy I know who wants this has WINDOZE machines on which he wants this done, but anyway I plan to migrate his office to Linux, after which I'd be wanting the above functionality.
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369
Rep:
Quote:
Originally Posted by resetreset
I'm disgusted with myself for not knowing the answer to this one, as I consider myself a fairly low-level hackerly type, but:
How do I disable the USB port on a machine? This is so that if a pendrive is stuck into it, nothing will happen, i.e. no viruses which can attack the machine etc.
The guy I know who wants this has WINDOZE machines on which he wants this done, but anyway I plan to migrate his office to Linux, after which I'd be wanting the above functionality.
No I need this on a GUI thingy - his situation is, people come to his office with pendrives, and he would like to disable them being able to plug in anything into the system cause he's afraid of viruses. But he needs to be able to click this on and off, as according to whether such ppl have landed up *at* his office or not. It's a valid situation, and I'd like to think Linux would be able to handle this.
And Angel, that wouldn't be a good idea, cause Like I said it has to be on a clickable interface, but anyway, what if the driver has not been compiled separately, i.e. there's no .o file to rmmod? Is there a way to unload the driver in this case?
What about usb keyboards and mouse. Maybe it's better to make a script with a nice menu for him where he can give and take user rights to mount usb pendrives comfortable from his desk .
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
Quote:
and he would like to disable them being able to plug in anything into the system cause he's afraid of viruses.
not to sound stupid but wouldn't migrating him to linux take care of the virus issue anyways
however if its a matter of not waning pendrives then perhaps the better answer is just to disable automounting of pen drives and make sure that standard users don't have permission to mount ANYTHING
You could disable automount feature of GNOME/KDE/whatever and restrict normal users from mounting any volumes. Then, as the mount is needed, a password could be entered to mount the drive. This can of course be scripted to be clickable (something like a controllable daemon which would change needed settings if a script asks it to do this).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.