Dzivirira Grub2 edition ine zita rekushandisa uye password (zvinyorwa)

tsvuku ngowani bhizinesi linux 7

Grub2 ndiyo yakagadziridzwa vhezheni ye Grub (GNU Grand Unified Bootloader), iyo Linux bootloader iyo yakadzoka zvakare muna 1999 nekuda kwekuvandudzwa kwaYoshinori Okuji, nepfungwa yekupa iyo penguin inoshanda sisitimu yazvino chishandiso kubvira LILO, kunyangwe yakanyatsogadzikana uye yakachengeteka, haina ipa mikana yakawanda kwazvo yeramangwana. Saizvozvo, Grub2 chikamu chakakosha chese ari maviri mashandiro uye chengetedzo yekomputa yedu, uye nekudaro zvakakosha kuti tione kuti tingatarise sei kuti ndiani, sei uye riini rinowanikwa.

Sezvo vazhinji vevaverengi vedu vachanyatso kuziva, Grub2 Inogona kuchengetedzwa nenzira yekuti isu tinokwanisa chete kuwana sarudzo dzayo nekupinza zita rekushandisa nephasiwedi, chimwe chinhu icho hachinyatso kuvhiringidzwa asi zvirinani chinotipa imwe chengetedzo uye chinononoka zvinhu kune avo vanoedza kuwana vasina mvumo kuLinux boot loader. Uye mune ino posvo tichaona nzira yekudzivirira Grub2 ine zita rekushandisa uye password (zvinyorwa).

Maitiro e chengetedza imwechete mushandisi modhi, pamwe neEmergency uye Kununura, kuti ichatibatsira muRet Hat Enterprise Linux, Fedora kana CentOS 7, uye kuti zvinongoda matanho mashoma sezvatichaona pazasi:

Kutanga tinopinda mukati semubati (kana isu kusimudza edu ropafadzo tichishandisa iyo 'su' kuraira) sezvo isu tichizogadzirisa iyo Grub yekumisikidza. Asi izvi zvisati zvaitika tinogadzira kopi yekuchengetedza mafaira arikutarisira.

cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg.original
cp /etc/grub.d/10_linux /etc/grub.d/10_linux.original

Iye zvino tinovhura iyo 10_linux faira:

sudo vi /etc/grub.d/10_linux

Uye isu tinowedzera anotevera mushandisi uye password zvinyorwa (kutsiva iwo mazwi neizvo isu zvatinosarudza):

cat << EOF
set superusers="willy" password willy contraseñadewilly
EOF

Pano mushandisi willy achave ne password 'passworddewilly', uye inowoneka muchikamu che 'superusers' nekuti ndiyo yega inogona kuwana chero kupinda kweGrub menyu, woigadzirisa (nekutsikirira iyo 'e'), kana kukumbira rairo yekuraira maitiro (nekudzvanya 'c').

Zvino isu tinogadzira iyo nyowani Grub.cfg:

grub2-mkconfig --output=/tmp/grub2.cfg

Zvino isu tinotsiva iyo Grub yekumisikidza faira neiyi yatakagadzira:

mv /tmp/grub2.cfg /boot/grub2/grub.cfg

Ndizvozvo, tinogona kutangazve uye kana tichiona iyo Grub skrini tinogona kudzvanya iyo 'e', ​​mushure meizvozvo isu tichazobvunzwa password yatakapinda mufaira rekumisikidza.


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

Mhinduro, siya zvako

Siya yako yekutaura

Your kero e havazobvumirwi ichibudiswa.

*

*

  1. Inotarisira data: AB Internet Networks 2008 SL
  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.   emeoa akadaro

    Zvingave sei kuna Debian? Tsvaga izvi kubva kuLinux: http://blog.desdelinux.net/como-proteger-grub-con-una-contrasena-linux/ asi yapera nguva kwazvo