Sponsored Content
Full Discussion: restrict USB
Top Forums Shell Programming and Scripting restrict USB Post 302330037 by otheus on Tuesday 30th of June 2009 05:16:50 AM
Old 06-30-2009
USB devices are "linked" to the system using "udev" control scripts. /etc/udev contains all the scripts and rules that are processed when a new device is added to the system. You can do "man 7 udev" explains how it works. You might have something like this rule:
Code:
SUBSYSTEM=="usb_device"  OPTIONS=ignore_device

will completely disable all USB devices. Note, this rule has to come pretty early in the chain, so put it in the file 05-udev-early.rules. Anywhere, from there, you add exceptions (more rules) which match specific device drivers or device names.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to restrict account to one log-in?

Our users have the tendency to use only one login account, to do their jobs. Obvious itīs a matter of training our users. But our internal audit team insists on restrictions from our system. So is there an option to restrict an account to only login once into the system? We use HP-UX 11.0. ... (0 Replies)
Discussion started by: Egroman
0 Replies

2. Shell Programming and Scripting

Possible to restrict SED

Hi, I guess by default SED looks for any occurences anywhere in the file or text. Is it possible to restrict the search to replace only for the complete pattern . I have data file like record 1->"abc abc123" record 2->"123 aaaaa" record 3->"./abc acacac" i have a replace file ... (7 Replies)
Discussion started by: braindrain
7 Replies

3. Solaris

restrict commands

Dears, how to determine the commands that could be used by certain user..like I want to prevent some users from running pwd command???? Thanx (4 Replies)
Discussion started by: mm00123
4 Replies

4. UNIX for Advanced & Expert Users

Restrict Access to the folder

Hi I have requirement to create 3 new users on my server but to restrict their access to a set of particular folders. /export/home/kapil/shared, /export/home/kapil/shared/Folder1 /export/home/kapil/shared/Folder2 These folders should be accessible to all the 3 users and to me too.... (1 Reply)
Discussion started by: kapilk
1 Replies

5. Shell Programming and Scripting

how can i restrict commands

hi all, i want to restrict commands to run from a specifc directory..and to make that only some specific commands to run ,,not all. please help me ...how can i make this happen. (3 Replies)
Discussion started by: tprayush
3 Replies

6. UNIX for Dummies Questions & Answers

USB-USB cable between linux and windows computers

Is there an easy way to setup a cross-over cable (USB-USB) between a linux box and a windows PC? My 2 machines are next to each other but I really do not want to keep transfering my files using my USB drive. Thanks! (4 Replies)
Discussion started by: Xterra
4 Replies

7. UNIX for Dummies Questions & Answers

Restrict access

I'm trying to use squid to restrict elinks' access to certain websites(only http traffic). I have tried some configs in squid.conf but no luck. Hope someone has a bit of time to explain me how can you make these config's :) ---------- Post updated at 05:40 PM ---------- Previous update was at... (1 Reply)
Discussion started by: Birnbacher
1 Replies

8. UNIX for Dummies Questions & Answers

How to restrict Rounding using Printf?

Hello, I am using bash shell on Linux OS, May i please know why is it rounding for big numbers but not for others, is there a workaround to print it as it is with out round off? printf '%'\''.2f\n' 9999999999999999999.99 10,000,000,000,000,000,000.00 printf '%'\''.2f\n' 99999999999999.99... (1 Reply)
Discussion started by: Ariean
1 Replies

9. Red Hat

Restrict sudo -i

Hi, I wanted add a group to the sudoers file so they can run sudo commands and blocked su command but it seems they can just run sudo -i to switch to root which defeats my purpose. Is it possible to block sudo -i with the help of sudoers file or any other way. Please advise. The below... (1 Reply)
Discussion started by: Jartan
1 Replies
USBIP(8)						  System Administration Utilities						  USBIP(8)

NAME
usbipd - USB/IP server daemon SYNOPSIS
usbipd [options] DESCRIPTION
usbipd provides USB/IP clients access to exported USB devices. Devices have to explicitly be exported using usbip bind before usbipd makes them available to other hosts. The daemon accepts connections from USB/IP clients on TCP port 3240. The clients authorised to connect may be configured as documented in hosts_access(5). OPTIONS
-D, --daemon Run as a daemon process. -d, --debug Print debugging information. -v, --version Show version. LIMITATIONS
usbipd offers no authentication or authorization for USB/IP. Any USB/IP client running on an authorised host can connect and use exported devices. EXAMPLES
server:# modprobe usbip server:# usbipd -D - Start usbip daemon. server:# usbip list - List driver assignments for usb devices. server:# usbip bind -b 1-2 - Bind usbip-host.ko to the device of busid 1-2. - A usb device 1-2 is now exportable to other hosts! - Use 'usbip unbind -b 1-2' when you want to shutdown exporting and use the device locally. SEE ALSO
usbip(8) usbip February 2009 USBIP(8)
All times are GMT -4. The time now is 11:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy