Page 1 of 1

Disabled USB port [SOLVED]

Posted: 12 Aug 2014, 12:57
by loukamoulox
Hi,

Simple question : is it possible to disabled some USB port through the iso ?
For information, i'm using Porteus Kiosk edition with a PXE Boot.

I hope i've been clear on my demand.

Thanks :)

Re: Disabled USB port

Posted: 12 Aug 2014, 13:42
by fanthom
yes - you have to remaster kiosk ISO as per documentation provided on porteus-kiosk.org and add your code to /etc/rc.d/rc.local.
just yesterday i have played with this (tried to rescan usb keyboard through ssh) and worked fine for me.

here is sample command for disabling my own usb mouse:

Code: Select all

echo 0 > /sys/bus/usb/devices/usb5/authorized
and enabling it again:

Code: Select all

echo 1 > /sys/bus/usb/devices/usb5/authorized
good luck!

Re: Disabled USB port

Posted: 25 Aug 2014, 09:54
by loukamoulox
Hi,

Sorry for this late answer and thanks for yours !
I've been thinking about your answer for my problem , but here is the deal : we use differents computers, with different number of usb ports ... It's maybe "too deep".
So i made more research about and decided to disable usb storage only.
I'm not an expert in Linux, so i found this method to do it :
- echo "blacklist usb-storage" > /etc/modprobe.d/blacklist-usbstorage
(in the 003-settings.xzm , of course)

but how can i check if this is working , since the filesystem is disable on my kiosk ?

Thanks :)

Re: Disabled USB port

Posted: 25 Aug 2014, 14:11
by fanthom
but how can i check if this is working , since the filesystem is disable on my kiosk ?
well - you have answered yourself :)
there is no way to access usb key content from kiosk so you dont have to do anything in this matter.

i thought you want to disable usb ports in general for usb keyboards/mices/scan guns etc..

Re: Disabled USB port

Posted: 26 Aug 2014, 08:14
by loukamoulox
Yep.. that's correct ahah.
Thanks for the help :)