Hi, On Wed, Oct 23, 2002 at 09:01:58PM +0400, Sergey Vlasov wrote: > > How would one restrict access so that although a user can scan, they > > can't fiddle with the USB hard drive or CD-ROM or automatic > > nuclear-weapon detonator? > > This is trickier. Looks like the hotplug scripts are able to do this, > however, this needs some tweaks...
Not that complicated either. Create e.g. /etc/hotplug/usb/foo.usermap containing all the devices that you want to be able to chmod. Use "foo" as module name. Add a script "foo" to /etc/hotplug/usb like this one: #!/bin/sh if test "$ACTION" = "add" ; then chmod a+rw $DEVICE # chgrp scanner $DEVICE # chmod g+rw $DEVICE # ... fi Bye, Henning