Jump to content

Reset Kali Linux Username

Go to solution Solved by Electronics Wizardy,
1 minute ago, YourSister said:

Ok but how do I reset my username I dont want to login to the root account

Add a user account. Linux needs to have a root account, but you shouldn't use it.

It has been a few weeks since I used my Kali Linux Virtual Machine and I can't remember my username and doing Root and the password root doesn't work either any help?

Link to comment
Share on other sites

Link to post
Share on other sites

the default password for root is toor

if it was useful give it a like :) btw if your into linux pay a visit here

 

Link to comment
Share on other sites

Link to post
Share on other sites

6 minutes ago, mahyar said:

the default password for root is toor

Ok but how do I reset my username I dont want to login to the root account

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, YourSister said:

Ok but how do I reset my username I dont want to login to the root account

well you have to.

login with root open a terminal then type:

sudo passwd Yourusername

and then you will be prompted with a massage to enter a new password

if it was useful give it a like :) btw if your into linux pay a visit here

 

Link to comment
Share on other sites

Link to post
Share on other sites

26 minutes ago, mahyar said:

well you have to.

login with root open a terminal then type:

sudo passwd Yourusername

and then you will be prompted with a massage to enter a new password

Read what OP is asking for. They don't know their username.

 

29 minutes ago, YourSister said:

Ok but how do I reset my username I dont want to login to the root account

Your username is what your home directory is named after. It will probably be the only folder inside /home.

I expect you will have to log in as root to be able to list that directory and see though.

____________________________________________________________________________________________________________________________________

 

 

____________________________________________________________________________________________________________________________________

pythonmegapixel

into tech, public transport and architecture // amateur programmer // youtuber // beginner photographer

Thanks for reading all this by the way!

By the way, my desktop is a docked laptop. Get over it, No seriously, I have an exterrnal monitor, keyboard, mouse, headset, ethernet and cooling fans all connected. Using it feels no different to a desktop, it works for several hours if the power goes out, and disconnecting just a few cables gives me something I can take on the go. There's enough power for all games I play and it even copes with basic (and some not-so-basic) video editing. Give it a go - you might just love it.

Link to comment
Share on other sites

Link to post
Share on other sites

You can list all users on your system by reading the contents of /etc/passwd

cat /etc/passwd

normal users have a UID (the number right after the second colon) greater or equal to 1000.

 

As root, you can change another user's password using the passwd utility:

passwd <user>

 

Insert your new password and you're done.

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×