Cov txheej txheem:

Yuav teeb Sudo password li cas hauv Linux?
Yuav teeb Sudo password li cas hauv Linux?

Video: Yuav teeb Sudo password li cas hauv Linux?

Video: Yuav teeb Sudo password li cas hauv Linux?
Video: Installing Jupyter Notebook on Ubuntu! 2024, Kaum ib hlis
Anonim

Hloov neeg siv passwords ntawm Linux

Rau hloov a tus password sawv cev ntawm tus neeg siv: Thawj kos npe rau lossis "su" lossis " sudo "mus rau "hauv paus" account rau Linux , khiav: sudo -i. Ces ntaus, passwd tom to hloov a tus password siv fortom. Qhov system yuav hais kom koj nkag mus rau a tus password ob zaug.

Dhau li ntawd, kuv yuav hloov kuv tus password Sudo li cas hauv Linux?

Cov txheej txheem los hloov tus neeg siv hauv paus lo lus zais ntawm UbuntuLinux:

  1. Ntaus cov lus txib hauv qab no los ua tus neeg siv hauv paus thiab qhov teeb meempasswd: sudo -i. passwd ua.
  2. LOSSIS teeb tus password rau tus neeg siv hauv paus hauv ib qho mus: sudo passwdroot.
  3. Kuaj koj tus password hauv paus los ntawm kev ntaus cov lus txib hauv qab no: su-

Ib tug kuj yuav nug, lo lus zais khaws cia hauv Linux nyob qhov twg? Linux passwords yog khaws cia hauv cov ntaub ntawv /etc/shadow. Lawv yog salted thiab cov algorithm siv nyob ntawm seb qhov kev faib tawm tshwj xeeb thiab yog configurable. Los ntawm qhov kuv nco qab, cov algorithms txhawb nqa yog MD5, Blowfish, SHA256 thiab SHA512.

Yog li ntawd, sudo password Linux yog dab tsi?

Los ntawm lub neej ntawd, tus account hauv paus tus password yog kaw hauv Ubuntu. Qhov no txhais tau tias hauv lub davhlau ya nyob twg koj yuav tsum siv sudo rau cov lus txib uas xav tau cov cai hauv paus; yooj yimprepend sudo rau tag nrho cov lus txib koj yuav tsum tau khiav asroot.

Sudo puas tuaj yeem hloov tus password hauv paus?

Kev xaiv 2: Hloov tus password sudo nrog passwdcommand Ib qho kev xaiv yog hloov mus rau qhov hauv paus user and then run the command to hloov tus root password . Ntaus hauv koj qhov tam sim no tus password thiab ntaus Enter. Cov zis koj tau txais yuav tsum qhia tias koj ua tau tam sim no khiav commands li hauv paus.

Pom zoo: