Change Linux Username & Hostname
Vložit
- čas přidán 26. 08. 2024
- All my videos are for educational purposes with bug bounty hunters and penetration testers in mind CZcams don't take down my videos 😉
🐦Follow me on Twitter = / phd_security
📚 All My Courses = www.phdsec.com/
🛍 shop merch @ merch.phdsec.com
📖 Udemy Course = www.udemy.com/...
brother. no joke, im pretty new into this world (stuck in tutorial hell rather), and i have to say - every single thing ive looked up - YOUVE HAD A VIDEO FOR. its amazing. thanks so much man. truly. EDIT: worked flawlessly, and in the best way (nothing broken!!!) Thanks again man!
In usermod, the -d flag is the NEW user directory, it is not used to "override" the old user directory. The -m flag is used to move the old user directory contents to the new one (it does not have an argument). Then we have the argument of the whole command, kali, which indicates which user we are changing the name of. In the example given, the command should have been:
"usermod -l ryan -d /home/ryan -m kali"
That way, all the content inside /home/kali is moved to new user user directory /home/ryan, how it should be (user directory should have the same name as the user).
this right here is the way to do it
@@mmvm98 bro i tried this command but it says 4:12 user is being used by process 769
@@cyberbhay did you reboot, not just log out?
@@mmvm98 yes i tried it and it worked i was successful to change my hostname and by the i wanted to ask one more thing where can i find a legit way to change my username..... ⚡i recently installed kali linux so it's kinda new to me
@@cyberbhay for what i know there is no "legit way". maybe just crate a new user then. but this way in the video works, you just have to do what Mellow Geek replied instead of what he do in the video.
I've struggled with this for days. Your video helped me resolve it within minutes. Thanks.
Simple and clean video Ryan. Thank you.
this is a great video, i like how everything in linux is commandlinable.
Thank you so much! It works! I struggled for days, but yay!
i get an "usermod: user is currently used by process 368" error. when i run ps there is no process with that id or whatever id it says. please help!
me too
Same
omFg, a simple, 0 loud crap music, step by step. this is so Novel. cheers
Thank you so much, it helped a lot
thanks i was doing it alone with the little knowledge i have and change something wrong and lost the user kali hahahha. thank god i ve created a second user if everything goes wrong . Great vid! new sub
Why does this appear to me? I was tired trying to change the name. What are the steps or what should I do so that it does not appear to me?
Usermod: user kali is currently used by process 1003
When is write sudo apt install gedit it says ‘E: Unable to locate package gedit’
Thanx, but what would my password be? Is it the one for the device?🙅🙅🙅🙅🙅🙅🙅🙅🙅
Followed along and did everything the same way you did. hostname changed just fine, but after changing the username, i'm running into problems.the default login (kali, kali) no longer workds (as expected), but my new username/pass doesn't work. I can log into root with my new password and run sudo commands, but I can't login with the new username even though the password works with root and the username shows up on the list of users when I cat the psswdfile
Use ur old password on the new account
Thanks
If you add how to enable root account it is very easy to beginners
when I am restarting it is giving me error "please remove the installation medium and then press enter" ?
I don't have any installation medium like CD or USB? I installed it on local drive then Why ?
can you please help me to resolve this issue ?
Thanks a lot man. I changed my hostname and it worked.
i followed through all of the instructions but i am sturk in host name in that final stage of changing the name i have i press the enter button but instead it enter another line
thank god you reuploaded it
I made sure to test everything this time before I uploaded 🥴
Error!
Hostname: user kali is currently used by process 961 🤔
Same mines says 858 though?
Hey Ryan, great tutorial as usual. For some reason I have a space as such "username@ kali" . How do I remove that space? The space remains also when changing the user to root.
Ouch...I'm gonna need a bit more specific guide.Yeah I'm trying to change the kali@kali: - part Linux Mint Cinnamon.
Okay managed to change the part after the @. At 3:12 step now... can't manage to change the username /home/kali kali@ part... only hostname.
Did what you said but after the restarting i its stuck on SDDM
Am I supposed to see a second IP address underneath the very first one ? If so I don’t have one to replace “kali” with my username ????😢
Thanks for the tutorial, everything works fine but there is one issue how can I change the name of the user directory in /home/from Kali to Myname.
How should I save download file or tool permanently in usb drive and i am using bootable USB live persistence i lost all File after reboot or restart
This is a excellent video. Thanks Bro
I tried doing what you said after editing /etc/hosts as you show and restarting I could not login user root. Does root have a default pw? It's not kali or root or toor. Also, I have read that root is no longer a username with kali. Is that right?
hey bro how did you get a phd for cyber security could you do a video about that the path and final paper
that dont work for me mate keeps popping up saying usermod: homedir must be an absolute path
Error writing /etc/hosts : permission denied
U tried using root access?
@@theguywithnoname4745I have the same problem any help? I use root for it yes
Sudo nano /etc/hosts
I installed linux 2023.3 in cmd windows, when i entered i automatically had changed hostname, could that make a trouble?
I am create one payload for Android but in it not connect with me
Sessions are not generated
What should I do??
thanks ryan it helps me alot im using parrot os
is there a way to change the password, because it stayed the same, it just changed the root password
can't operate failed to connect to bus host down what should I do
trying again today, failed to change the username again
When you are doing these videos give full steps not just clicking and then saying oh no didn’t means to do that…
nahhh idk why i can't change my username, i did what u said and nothin... bro why?
I guess this doesn't work anymore
Something he didn’t make clear was the password. You either put in root or kali
I cannot save my hostname 😢 when i click control + o and then enter it says "file name to write /ect/hosts..../ and its waiting for me to type something that i dont know..
Pls someone help im new to kali
same
man i fucked it up at first but managed to fix it thx
the goatttt
Thanks for the help
Username is changed and thanks a lot for that but how to change the password also
was able to change the host name but unable to change username
Same issue bro...
Nope. No dice.
Thank you sm !!!
thanks for help
hey im really new to kali and wanted to know how do you apply what you entered in the "/etc/hosts" cause when I save modified buffer i dont know what to do from there
press enter
You press ctrl o then enter to save and then ctrl X to exit
@@lind-hw6qothis comment saved me from almost deleting and starting over😂
User Kali is currently used by process 733 😭
Same issue 😢
same problem
Thanks so much
Thanks sir ❤
Thanks
When i try to change the user name it says user kali is currently used by process 1036 and when i kill that process it redirects me to the login page of kali linux and it happens again and again plz help..
Did you reboot your vm and login as root?
@@ryan_phdsec i have tried it multiple times but it didnt workout so i deleted the kali machince and reinstalled 😂 because i was facing errors while using commands like git clone apt update etc
@@abdullahziauddin6008 i had the same issue. its because you logged in with "kali" username. it cant edit itself while logged in to itself. you have to log into kali with username "root" then run the command
@@kaiyuVFX how to login as root? What's the password for it?
@@bagas5425write
passwd root
Enter a password and hit enter
After that logout out and login and enter root as username and enter the password u entered when u did passwd root command and u will login as root
Hope u find it helpful 😊
How to save it win i wite (phdsec.localdomain phdsec ) because i dont press esc with all keyboard?!!??
cntrl + x
and then enter
Dear Boss
Upload for video
For aviator casino hack
Sir, have the this command but mind is not changing, please what should I do, Am confuse .
👌
ꜱᴛɪʟʟ ɴᴏ ᴄʜᴀɴɢᴇ ɪɴ ᴘᴀꜱꜱᴡᴏʀᴅ ᴀɴᴅ ᴜꜱᴇʀɴᴀᴍᴇ
czcams.com/video/VM64fH6tEEU/video.html from right here how do you even save the modified file? you didnt show that.
Edit: you used shortcut keys and you really should of showed that for the beginners. When entering the usermod command i get this " Usermod: user kali is currently used by process 1041" still struggling its amazing how hard it is to change a username and password.
I couldn’t change passwords following your steps
Eroor writing /ect/hosts: no such file or directory
pls help - new to kali
U probly relocated or removed some host files, just locate were they are and write the command to that.
change to /etc/hosts, typo
Berukkkkkkkkkkkkk
how to fix this???
usermod -l hex_xploit -d /home/hex_xploit -m kali
usermod: user kali is currently used by process 751
I cant change that
please tell me the way how you saved the file after you wrote {phdsc.localdomain phdsc} iam stuck there
I you are using gedit you can just hit command S to save or exit and it will ask if you want to save
Hi thanks for the video I get this message..... "┌──(root㉿max)-[~]
└─# usermod -l max -d /home/kali -m kali
usermod: user kali is currently used by process 1028......what does it mean?
you need to restart your vm and sign in as root
@@ryan_phdsec Hi thanks for your reply, once I am in the root terminal and I use the following command "usermod -l max -d /home/kali -m kali" I get this message "┌──(root㉿max)-[~]
└─# usermod -l max -d /home/kali -m kali
usermod: user 'kali' does not exist......but when I boot the VM back I cannot sign with max I have to do it with kali, I have been able to change the password but I can't change the username, but root is telling me that I signed on with max (see above), after I tried to use the following command "groupmod -n max kali"
──(root㉿max)-[~]
└─# groupmod -n max kali
groupmod: group 'kali' does not exist
again is telling me, it does not exist....
@@falankuk I also faced the same issue. How do you fix that😢?
Thanks