Bethela ifolda yakho yasekhaya ku-Ubuntu 18.04

ecryptfs

Isikhathi esithile Ubuntu usinikeze inketho ngenkathi yenqubo yokufaka ukubethela ifolda yethu yomuntu siqu, abaningi bethu abamane bakushaye indiva. Le nketho isilinganiso sokuphephad ukuze abantu bangaphandle bakwazi ukufinyelela kufolda yethu yomuntu siqu.

Kwi-Linux sinezinye izindlela eziningi phakathi kwayo i-GPG kumafayela, i-eCryptfs noma i-EncFS kuzinkomba, i-TrueCrypt noma i-dm-crypt kumadivayisi, i-loop-AES yamafayela we-loop, phakathi kwabanye. Kungakho kulesi sifundo sizosebenzisa ama-eCryptfs ukubethela ifolda yethu yomuntu siqu.

I-ECryptfs iyithuluzi elisivumela ukuthi sibethele izinhlelo zamafayela ngaphansi kwezinhlelo ze-Linux, I-eCryptfs igcina imethadatha ye-cryptographic kunhlokweni wefayela ngalinye elibhaliwe, ukuze amafayela abetheliwe angakopishwa phakathi kwabasingathi.

Ifayela lizosuswa ngemfihlo ngokhiye ofanele okhiye we-Linux kernel. Ama-ECryptfs asetshenziswa kabanzi, njengesisekelo se-Directory Encrypted Home Directory ka-Ubuntu, futhi azalelwa naku-ChromeOS.

Ungayifaka kanjani i-eCryptfs ku-Ubuntu 18.04 nakwezokuphuma?

Ukuze sibethele ifolda yethu ngemfihlo, kumele sifake ezinye izinsiza, singabathola esikhungweni sesoftware Ubuntu noma ngosizo lweSynaptic okufanele siyibheke nje:

ecryptfs

Noma futhi singasebenzisa i-terminal ukuyifaka kukhompyutha yethu, kufanele nje sivule ukuphela bese sisebenzisa umyalo olandelayo.

sudo apt install ecryptfs-utils cryptsetup

Ungayibhala kanjani ifolda yomuntu siqu ku-Ubuntu 18.04?

ManjeKubalulekile ukwazi ukuthi ngeke sikwazi ukubethela ifolda yomuntu siqu yomsebenzisi wethu oyisebenzisayo, kungenxa yalokho kumele sizisekele ngokwakha omunye umsebenzisi ohlelweni ukwenza lo msebenzi futhi uwunikeze izimvume zomlawuli.

Lokhu kungaba kwesikhashana, ngakho-ke ungakususa ngokuhamba kwesikhathi. Ukwakha umsebenzisi omusha onamalungelo okuphatha, ungasebenzisa:

Kusuka kuzilungiselelo> Imininingwane> Abasebenzisi:

ubuntu_encrypt_home_new_user

O kusuka kulayini womyalo:

sudo adduser <user>

sudo usermod -aG sudo <user>

Manje kufanele sifuduse ifolda yasekhaya yomsebenzisi ukuze siyibethele.

Kufanele bakhumbule nange-intuition elula ukuvala isikhathi ku-akhawunti yethu yomsebenzisi bese bangena nge-akhawunti esanda kudalwa ukuze bakwazi ukubhala ngemfihlo ifolda yethu siqu.

Kwenziwe lokhu kufanele sivule ukuphela bese senza lo myalo ukuhambisa ifolda yasekhaya esiyifunayo:

sudo ecryptfs-migrate-home -u usuariodelacarpeta

Lapho usebenzisa lo myalo, ikhophi eyisipele yefolda yasekhaya yomsebenzisi oyifunayo iyakhiwa. Le nqubo ingathatha isikhashana ngakho kufanele ubekezele.

Lapho inqubo isiqedile, phuma ohlelweni bese ungena ngemvume usebenzisa imininingwane evamile yomsebenzisi.

Cishe ukuqeda iphasiwedi idinga ukungezwa ekubetheni, ngalokhu kufanele sivule ukuphela bese senza umyalo olandelayo:

ecryptfs-unwrap-passphrase

Lapho le nqubo isiqediwe, kufanele siqale kabusha ikhompyutha yethu ukuze siqale ukujabulela ukuba nemfihlo yemininingwane yethu.

Kakade nayo ingasusa ngokuphepha umsebenzisi wesikhashana, kanye nokwenza isipele okwenziwe.

Uma bengakhumbuli igama lesipele, ku-terminal bangasebenza

ls /home

Futhi siyabona elinye lamafolda ashiwo kufanele kube igama lomsebenzisi elilandelwa ezinye izinombolo nezinhlamvu (njenge-logix.4xVQvCsO) - lokho kuyisipele.

Kepha lesi sinyathelo singemuva kokuqalisa kabusha.

Ngabe ifolda yomsebenzisi omusha ingabethelwa?

Le nqubo ingasetshenziswa nakubasebenzisi abasha, ngakho-ke imiyalo ekhonjiswe lapha iyafana nalokhu, ngoba sisebenzisa i-akhawunti yethu yomsebenzisi ukubethela entsha.

sudo adduser --encrypt-home <user>

Ukwakha umsebenzisi omusha ngezimvume zomlawuli:

sudo usermod -aG sudo <user>

Manje ekugcineni sinikeza iphasiwedi eqinile kuyo:

ecryptfs-unwrap-passphrase

Siqala kabusha imishini futhi yilokho kuphela.

Ngaphandle kokuningi, leli elinye lamathuluzi i-Ubuntu elisebenzisa ngokwendabuko, kepha njengoba kushiwo kukhona abanye abanemisebenzi ecacisiwe futhi esezingeni eliphakeme, uma wazi noma iyiphi enye indlela yokubethela ifolda yethu, unganqikazi ukuyabelana nathi kumazwana.


Okuqukethwe yi-athikili kunamathela ezimisweni zethu ze izimiso zokuhlelela. Ukubika iphutha chofoza lapha.

Yiba ngowokuqala ukuphawula

Shiya umbono wakho

Ikheli lakho le ngeke ishicilelwe. Ezidingekayo ibhalwe nge *

*

*

  1. Ubhekele imininingwane: Miguel Ángel Gatón
  2. Inhloso yedatha: Lawula Ugaxekile, ukuphathwa kwamazwana.
  3. Ukusemthethweni: Imvume yakho
  4. Ukuxhumana kwemininingwane: Imininingwane ngeke idluliselwe kubantu besithathu ngaphandle kwesibopho esisemthethweni.
  5. Isitoreji sedatha: Idatabase ebanjwe yi-Occentus Networks (EU)
  6. Amalungelo: Nganoma yisiphi isikhathi ungakhawulela, uthole futhi ususe imininingwane yakho.