Solution For Root Privilege Errors in Kali Linux

Dolyetyus

Co Admin
21 Nis 2020
1,204
664
Delft
I wanted to write a mistake which I encountered into a topic. First, how do we become root and then I will find solutions to some errors after being root.

How Do We Become Root?

After opening Kali, open the terminal and write

Kod:
sudo root passwd

First, enter your password, then the password you want to give to the root account and log off from Kali. After entering the user name, enter the password you set in the root password. If you come to the terminal when you open it, you are now root. You are also root in directories. But there is a problem, terminal is uncolored?[/COLOR]

Coloring Terminal

First, enter Home, then go to /home/ from the directory above and enter the output file. Press the option to show hidden files from view. Then open the .bashrc file and copy all the codes in it. Come to the root directory and open the .bashrc file there and do not delete those codes, go to the bottom line and paste the codes you copied..

Some Codes Not Working?

Some code may not work after giving root privilege, such as apt-get update. The solution is simple.


Kod:
mousepad /etc/apt/sources.list

Enter E directory, delete the contents and paste these codes.


Kod:
deb http://http.kali.org/kali kali-rolling main contrib non-free

deb-src http://http.kali.org/kali kali-rolling main contrib non-free

deb http://old.kali.org/kali sana main non-free contrib

deb-src http://old.kali.org/kali sana main non-free contrib

deb http://old.kali.org/kali moto main non-free contrib

deb-src http://old.kali.org/kali moto main non-free contrib


Fix Missing And Broken Errors


The solution is simple too. For example, did you get a fix missing error?


Kod:
apt install --fix-missing
Or
Kod:
apt install --fix-broken

If you do apt-get update afterwards, the problem would be solved. Make sure you do apt-get update because we have made some adjustments. Thanks for reading.


Translated from: https://www.turkhackteam.org/linux/1958263-kali-linuxdeki-root-yetkisi-hatalarina-cozum.html
Original Author: baysiberbela


 

ѕeleɴια

Kıdemli Üye
18 May 2018
2,620
904
ZYZZ
Thank you for translating, teacher. If there are people in this situation, I hope I helped. You're in :)
 
Üst

Turkhackteam.org internet sitesi 5651 sayılı kanun’un 2. maddesinin 1. fıkrasının m) bendi ile aynı kanunun 5. maddesi kapsamında "Yer Sağlayıcı" konumundadır. İçerikler ön onay olmaksızın tamamen kullanıcılar tarafından oluşturulmaktadır. Turkhackteam.org; Yer sağlayıcı olarak, kullanıcılar tarafından oluşturulan içeriği ya da hukuka aykırı paylaşımı kontrol etmekle ya da araştırmakla yükümlü değildir. Türkhackteam saldırı timleri Türk sitelerine hiçbir zararlı faaliyette bulunmaz. Türkhackteam üyelerinin yaptığı bireysel hack faaliyetlerinden Türkhackteam sorumlu değildir. Sitelerinize Türkhackteam ismi kullanılarak hack faaliyetinde bulunulursa, site-sunucu erişim loglarından bu faaliyeti gerçekleştiren ip adresini tespit edip diğer kanıtlarla birlikte savcılığa suç duyurusunda bulununuz.