Results 1 to 4 of 4
Thread: usb security
|
Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
-
11-15-2011 #1
- Join Date
- Nov 2011
- Posts
- 3
usb security
how to give security to usb device in linux?
i mean i want to give read/write only options to my usb mass storage device(eg: pendrive).
how to do this.
any help?????
-
11-16-2011 #2
- Join Date
- Oct 2008
- Posts
- 153
You can easily remove execute permissions with chmod
Code:chmod -x /dev/sdb1
Last edited by kurtdriver; 11-16-2011 at 06:30 AM. Reason: Spell better second time around
-
11-16-2011 #3
- Join Date
- Nov 2011
- Posts
- 3
thanks for ur reply.
my problem is,
I am able to block(allow) or unblock(reject) the USB mass storage device to my pc with the help of libusb api's. upto this ok.
incase of unblock(accept) device:
i want to control write/read to/from device.
means, i need a control (accept/reject transfer) when user copy a file from my pc and paste in a usb mass storage (pendrive) device.
I am not able to achieve with LIBUSB API's. Please
help??????
-
11-18-2011 #4
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
- Posts
- 14,038
If you format the device with a Linux file system, such as ext2/3/4, then you can set ownership and permissions on the files as you wish, or if you have SELinux extensions on your system, you can add them to the appropriate ACLs (Access Control Lists). In any case, Windows users will not be able to easily access the data.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!