Disabled USB port [SOLVED]

Here you can post about the issues related to modifications performed manually (not through the kiosk wizard). Example: swapped kernel, added 3rd party modules or files.
Please describe in detail what has been changed and hopefully other kiosk user will be able to help.
Porteus team wont resolve bugs posted in this category as we support only modifications made by the kiosk wizard.
Forum rules
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
loukamoulox
White ninja
White ninja
Posts: 17
Joined: 12 Aug 2014, 12:48
Distribution: Porteus Kiosk
Location: France

Disabled USB port [SOLVED]

Post#1 by loukamoulox » 12 Aug 2014, 12:57

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 :)
Last edited by loukamoulox on 26 Aug 2014, 11:39, edited 1 time in total.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Disabled USB port

Post#2 by fanthom » 12 Aug 2014, 13:42

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!
Please add [Solved] to your thread title if the solution was found.

loukamoulox
White ninja
White ninja
Posts: 17
Joined: 12 Aug 2014, 12:48
Distribution: Porteus Kiosk
Location: France

Re: Disabled USB port

Post#3 by loukamoulox » 25 Aug 2014, 09:54

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 :)

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Disabled USB port

Post#4 by fanthom » 25 Aug 2014, 14:11

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..
Please add [Solved] to your thread title if the solution was found.

loukamoulox
White ninja
White ninja
Posts: 17
Joined: 12 Aug 2014, 12:48
Distribution: Porteus Kiosk
Location: France

Re: Disabled USB port

Post#5 by loukamoulox » 26 Aug 2014, 08:14

Yep.. that's correct ahah.
Thanks for the help :)

Locked