instructions for suid install
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 19 Aug 2014 13:43:23 +0000 (15:43 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 19 Aug 2014 13:43:23 +0000 (15:43 +0200)
examples/usbreset.c

index 03d1787..a595a8b 100644 (file)
@@ -2,6 +2,15 @@
 
 /*
 
+To install as suid binary use following commands:
+
+make usbreset
+cp usbreset /usr/local/bin/
+sudo chown root /usr/local/bin/usbreset 
+sudo chmod 2755 /usr/local/bin/usbreset 
+
+Taken from
+
 http://marc.info/?l=linux-usb-users&m=116827193506484&w=2
 
 and needs mounted usbfs filesystem
@@ -20,9 +29,6 @@ thing but with a "0" instead of the "2" above.
 Note that this mechanism is slated to be removed from the kernel within 
 the next year.  Hopefully some other mechanism will take its place.
 
-> To reset a
-> device?
-
 Here's a program to do it.  You invoke it as either
 
        usbreset /proc/bus/usb/BBB/DDD