Chengetedza kushandiswa kwe USB zvishandiso muLinux

Avo vanoshanda nevashandisi mumasangano anoda mamwe marambidzo, kungave kuvimbisa mwero wekuchengeteka, kana neimwe pfungwa kana kuraira "kubva kumusoro" (sekutaura kwedu pano), nguva zhinji dzinofanirwa kuita zvimwe zvinorambidzwa pakombuta, apa ini ichataura zvakanyanya nezve kudzora kana kudzora kupinda kune zvishandiso zvekuchengetedza USB.

Chengetedza USB uchishandisa modprobe (haina kundishandira)

Iyi haisiri tsika nyowani, inosanganisira kuwedzera iyo usb_storage module kune yakasarudzika mamodule emakernel akatakurwa, angave ari:

echo usb_storage> $ HOME / nhema rondedzero sudo mv $ HOME / blacklist /etc/modprobe.d/

Ipapo isu tinotangazve komputa uye ndizvozvo.

Jekesa kuti kunyangwe munhu wese achigovana iyi sarudzo semhinduro inoshanda kwazvo, mune yangu Arch haina kundishandira

Dzima USB nekubvisa kernel driver (haina kundishandira)

Imwe sarudzo ingave yekubvisa mutyairi we USB kubva kune kernel, nekuti izvi tinoita unotevera kuraira:

sudo mv /lib/modules/$(uname -r)/kernel/drivers/usb/storage/usb* /root/

Isu tinotangazve uye takagadzirira.

Izvi zvichave kuti iyo faira iine madhiraivha eUS anoshandiswa nekernel anozoiendesa kune imwe folda (/ mudzi /).

Kana iwe uchida kugadzirisa shanduko iyi zvichave zvakakwana ne:

sudo mv /root/usb* /lib/modules/$(uname -r)/kernel/drivers/usb/storage/

Iyi nzira haina kundishandira kana, nechimwe chikonzero maUSs akaramba achindishandira.

Chengetedza kupinda kune zvishandiso zve USB nekuchinja mvumo ye / media / (KANA yakandishandira)

Iyi ndiyo kure nzira iyo inoshanda kwandiri. Sezvaunofanira kuziva, USB zvishandiso zvakaiswa pa / media / o… kana yako distro ikashandisa systemd, ivo vakaiswa pa / run / media /

Zvatichaita kushandura mvumo ku / media / (kana / run / media /) kuitira kuti CHETE mushandisi wemidzi agone kuwana zvirimo, nekuti izvi zvichave zvakakwana:

sudo chmod 700 /media/

kana ... kana iwe ukashandisa Arch kana chero distro ine systemd:

sudo chmod 700 /run/media/

Ehezve, ivo vanofanirwa kufunga kuti iwo chete mushandisi mushandisi ane mvumo yekukwirisa USB zvishandiso, nekuti ipapo mushandisi anogona kukwira iyo USB mune imwe folda uye kutsausa kwedu kurambidzwa.

Kana izvi zvangoitwa, zvishandiso zveUSB kana zvakabatana zvichakwidzwa, asi hapana ziviso ichaonekwa kumushandisi, uye havazokwanise kuwana dhairekita kana chero chinhu.

Magumo!

Pane dzimwe nzira dzakatsanangurwa pamambure, semuenzaniso uchishandisa Grub ... asi, fungidzira kuti chii, hazvina kundishandira kana 🙂

Ini ndinotumira sarudzo dzakawanda kwazvo (kunyangwe hazvo dzisiri dzese dzakandishandira) nekuti mumwe wangu wandaiziva akatenga kamera yedhijitari pane online chitoro tekinoroji zvigadzirwa muChile, akayeuka iwo script spy-usb.sh kuti nguva yadarika ndakatsanangura panoNdinoyeuka, inoshanda kusora zvishandiso zveUSB uye kuba ruzivo kubva kune idzi) uye akandibvunza kana paive neimwe nzira yekudzivirira ruzivo kubva kubiwa kubva kukamera yake nyowani, kana imwe sarudzo yekuvhara michina ye USB pakombuta yake yekumba.

Zvisinei, kunyangwe ichi chisiri chekudzivirira chekamera yako kumakomputa ese maunogona kuisanganisa, zvirinani inokwanisa kudzivirira PC yekumba kubva pakubviswa kweruzivo rwakadzama kuburikidza nemidziyo yeUSB.

Ndinovimba yakave (senguva dzose) ichikunakira iwe, kana mumwe munhu achiziva chero imwe nzira yekuramba kupinda kweUSB muLinux uyezve, inoshanda pasina matambudziko, tizivise.


Izvo zviri muchinyorwa zvinoomerera pamisimboti yedu ye tsika dzekunyora. Kuti utaure chikanganiso tinya pano.

Makomendi gumi, siya zvako

Siya yako yekutaura

Your kero e havazobvumirwi ichibudiswa. Raida minda anozivikanwa ne *

*

*

  1. Inotarisira iyo data: Miguel Ángel Gatón
  2. Chinangwa cheiyo data: Kudzora SPAM, manejimendi manejimendi.
  3. Legitimation: Kubvuma kwako
  4. Kutaurirana kwedata
  5. Dhata yekuchengetedza: Dhatabhesi inobatwa neOccentus Networks (EU)
  6. Kodzero: Panguva ipi neipi iwe unogona kudzora, kupora uye kudzima ruzivo rwako

  1.   SnKisuke akadaro

    Imwe nzira inogoneka yekudzivirira kukwidza usb yekuchengetera inogona kunge iri nekuchinja iyo mitemo muudev http://www.reactivated.net/writing_udev_rules.html#example-usbhdd, nekugadzirisa mutemo kuti mudzi chete ugone kukwira usb_storage zvishandiso, ndinofunga ichave iri "fashoni" nzira. Mufaro

  2.   OtakuLogan akadaro

    MuDebian wiki vanoti varege kuvharira ma module zvakananga mu /etc/modprobe.d/blacklist (.conf) faira, asi mune yakazvimiririra inoperera mu .conf: https://wiki.debian.org/KernelModuleBlacklisting . Ini handizive kana chinhu chacho chakasiyana muArch, asi ndisina kumboedza pane maUSB pakombuta yangu inoshanda seizvi ne, semuenzaniso, nebhuruu uye pcspkr.

    1.    OtakuLogan akadaro

      Uye ini ndinofunga Arch inoshandisa nzira imwechete, handiti? https://wiki.archlinux.org/index.php/kernel_modules#Blacklisting .

  3.   rudamacho akadaro

    Ini ndinofunga kuti sarudzo iri nani nekushandura mvumo kungave kugadzira rakatarwa boka re / midhiya, semuenzaniso "pendrive", ipa iro boka kune / midhiya uye upe mvumo 770, kuti tikwanise kudzora kuti ndiani angashandisa izvo zvakaiswa pa / midhiya nekuwedzera mushandisi kuboka «pendrive», ndinovimba unonzwisisa 🙂

  4.   iskalotl akadaro

    Mhoroi, KZKG ^ Gaara, yenyaya iyi tinogona kushandisa policykit, neizvi tinogona kuita izvozvo kana tichiisa USB chishandiso sisitimu inotikumbira kuti tivimbise semushandisi kana mudzi usati waisimudza
    Ndine zvimwe zvinyorwa zvekuti ndakazviita sei, mukufamba kweSvondo mangwana ndinotumira.

    Thanks.

  5.   iskalotl akadaro

    Kupa kuenderera mberi kune meseji nezve kushandisa policykit uye tichitarisa chokwadi chekuti parizvino handina kukwanisa kutumira (ndinofungidzira kuti nekuda kweshanduko dzakaitika muDesdelinux UsemosLinux) ndinokusiya sezvandakaita kudzivirira vashandisi kubva kukwira yavo USB zvishandiso. Izvi pasi peDebian 7.6 neGnome 3.4.2

    1.- Vhura iyo faira /usr/share/polkit-1/action/org.freedesktop.udisks.policy
    2.- Tinotsvaga chikamu «»
    3.- Isu tinoshandura zvinotevera:

    "Uye ndizvo"

    by:

    "Auth_admin"

    Ready !! izvi zvinoda kuti utendeke semudzi paunenge uchiedza kukwidza USB chishandiso.

    Refer:
    http://www.freedesktop.org/software/polkit/docs/latest/polkit.8.html
    http://scarygliders.net/2012/06/20/a-brief-guide-to-policykit/
    http://lwn.net/Articles/258592/

    Thanks.

    1.    Raidel celma akadaro

      Padanho 2 ini handinzwisise chikamu chaunoreva iwe "Ndiri wekutanga."

      Ndatenda nerubatsiro.

  6.   ndinoshuvira akadaro

    Imwe nzira: wedzera iyo "nousb" sarudzo kune kernel boot rairo yekuraira, iyo inosanganisira kugadzirisa iyo grub kana lilo config faira.

    nousb - Dzima iyo USB subsystem.
    Kana iyi sarudzo iripo, iyo USB subsystem haizotangiswa.

  7.   Raidel celma akadaro

    Maitiro ekuchengeta mupfungwa kuti chete mudzi mushandisi ane mvumo yekukanda USB zvishandiso uye vamwe vashandisi havana.

    thanks.

    1.    KZKG ^ Gaara akadaro

      Maitiro ekuchengeta mupfungwa kuti kunze-kwe-kwe-bhokisi-distros (senge iyo yaunoshandisa) otomatiki kuisa madhivha eUSB, kungave Kubatana, Gnome kana KDE ... kungave kushandisa policykit kana dbus, nekuti ndiyo system inovaisa, kwete mushandisi.

      Pasina chinhu 😉

  8.   Victor akadaro

    Uye kana ini ndoda kukanzura mhedzisiro ye
    sudo chmod 700 / midhiya /

    Chii chandinofanira kuisa mune terminal kuti ndiwanezve kuwana iyo USB?

    gracias

  9.   kusazivikanwa akadaro

    Izvo hazvishande kana iwe ukabatanidza nhare yako ne USB tambo.

  10.   ruyzz akadaro

    sudo chmod 777 / media / kugonesa zvakare.

    Thanks.

  11.   Maurel anozorora akadaro

    Izvi hazvigoneke. Ivo vanofanirwa kungokwidza iyo USB mune dhairekitori kunze kwe / midhiya.

    Kana kuremadza iyo module ye USB isingashande kwauri, iwe unofanirwa kuona kuti ndeipi module inoshandiswa kune ako USB madoko. pamwe urikuremadza isiriyo.