Kali Linux password fail
#1
Hello,

I have Pinebook Pro with Kali 2020.1
 for ARM. I logs in with kali/kali for a while and I decided that I should change my password to a more secure one. So, I used command "passwd"


kali@kali:~$ passwd
current password:
Enter new password:
Retype new password:
passwd: [font=Tahoma, Verdana, Arial, sans-serif]Your password has been successfully changed.[/font]

And I changed it => "Your password has been successfully changed." and when I log in to terminal for recheck it works fine. But when I restarted it, I couldn't log in. Password is too easy. I couldn't forget him. I've tried to find tips on Google but most tips counts the grub and Pinebook Pro doesn't have it.

Thank you in advance for any answers.

PS: I tried to write to official Kali forum but for some reason they didn't post it to me. 
PS 2: Sorry for my english.
  Reply
#2
You could login as root and force a change password that way. Your other option would be to boot another Linux distro and edit the passwords file under a root account.

Btw, Kali Linux is by design insecure, you really shouldn't use it as a daily driver.
  Reply
#3
(02-08-2021, 06:35 PM)barray Wrote: You could login as root and force a change password that way. Your other option would be to boot another Linux distro and edit the passwords file under a root account.

Btw, Kali Linux is by design insecure, you really shouldn't use it as a daily driver.


I couldn't login as root because version 2020.1 does not have root account - https://www.linuxuprising.com/2020/01/ka...-root.html

" In an article posted on the Kali blog, it's explained that over the years, more and more users have started to use Kali as their daily driver. With this usage increasing over time, "there is the obvious conclusion that default root user is no longer necessary and Kali will be better off moving to a more traditional security model." "
  Reply
#4
From some other boot, ie if kali on emmc, use SDboot, if k on SD, emmc boot or card reader
mount kali / somewhere, cd kali/etc, edit shadow (kali/etc/shadow)
Look for the line with your login name,, for example (for d,, changed)
d:$6$HAGjYB4WRfi91DJ8$l0wAB0N.IalV4hlvsiLjm/MEbi7TK5Jhgi5hyzBVCimYyS5TlYeLuEp0:17525::99999::::
make it
d::17525::99999::::
ie,,$USER::other stuff,, nothing between first 2 colons, this will be passwordless
Do make a backup first, in case you really screw up
  Reply
#5
(02-09-2021, 09:06 AM)Wawe Wrote:
(02-08-2021, 06:35 PM)barray Wrote: You could login as root and force a change password that way. Your other option would be to boot another Linux distro and edit the passwords file under a root account.

Btw, Kali Linux is by design insecure, you really shouldn't use it as a daily driver.


I couldn't login as root because version 2020.1 does not have root account - https://www.linuxuprising.com/2020/01/ka...-root.html

" In an article posted on the Kali blog, it's explained that over the years, more and more users have started to use Kali as their daily driver. With this usage increasing over time, "there is the obvious conclusion that default root user is no longer necessary and Kali will be better off moving to a more traditional security model." "

I still highly recommend not using it as a daily driver if security is important to you. The 'sort' of person who would want to use Kali shouldn't have it as their main OS Wink Also bare in mind that from a threat model perspective, you essentially tell some third party "I am an interesting target".

@wdt has documented for you exactly how to change the password. Be careful!
  Reply
#6
(02-09-2021, 11:26 AM)wdt Wrote: From some other boot, ie if kali on emmc, use SDboot, if k on SD, emmc boot or card reader
mount kali / somewhere, cd kali/etc, edit shadow (kali/etc/shadow)
Look for the line with your login name,, for example (for d,, changed)
d:$6$HAGjYB4WRfi91DJ8$l0wAB0N.IalV4hlvsiLjm/MEbi7TK5Jhgi5hyzBVCimYyS5TlYeLuEp0:17525::99999::::
make it
d::17525::99999::::
ie,,$USER::other stuff,, nothing between first 2 colons, this will be passwordless
Do make a backup first, in case you really screw up

Thanks so much for your help. It works!

(02-09-2021, 01:38 PM)barray Wrote:
(02-09-2021, 09:06 AM)Wawe Wrote:
(02-08-2021, 06:35 PM)barray Wrote: You could login as root and force a change password that way. Your other option would be to boot another Linux distro and edit the passwords file under a root account.

Btw, Kali Linux is by design insecure, you really shouldn't use it as a daily driver.


I couldn't login as root because version 2020.1 does not have root account - https://www.linuxuprising.com/2020/01/ka...-root.html

" In an article posted on the Kali blog, it's explained that over the years, more and more users have started to use Kali as their daily driver. With this usage increasing over time, "there is the obvious conclusion that default root user is no longer necessary and Kali will be better off moving to a more traditional security model." "

I still highly recommend not using it as a daily driver if security is important to you. The 'sort' of person who would want to use Kali shouldn't have it as their main OS Wink Also bare in mind that from a threat model perspective, you essentially tell some third party "I am an interesting target".

@wdt has documented for you exactly how to change the password. Be careful!


Yeah, you're right, it wasn't very smart to put it on the main machine. I'll probably put an ubuntu mate there. Thanks for your recommendation.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Arch Linux ARM root filesystem SKiljan 20 1,976 09-12-2021, 11:16 AM
Last Post: flyingscorpio
Sad 1080p60 video on PBP Linux chewie 2 451 08-03-2021, 09:43 AM
Last Post: chewie
  A true mainline Linux Kernel for the Pinebook Pro tsys 154 103,724 06-20-2021, 09:26 AM
Last Post: linuxad
  Kali Linux for Pinebook Pro Luke 88 64,991 05-24-2021, 02:58 PM
Last Post: Yan
  eMMC frequently not found by Linux kernel (especially on low battery) v-man 14 6,854 05-14-2021, 01:18 PM
Last Post: djhnsn
  FLOSS pinebook pro linux set-up misha64 3 1,985 01-14-2021, 04:05 PM
Last Post: kuleszdl
  Manjaro Crashes after entering password. chastitywhiterose 5 1,604 12-23-2020, 05:20 AM
Last Post: wdt
  KISS Linux for Pinebook Pro jedavies-dev 4 4,766 12-06-2020, 02:38 PM
Last Post: jedavies-dev
  RealVNC and root password mspohr 6 3,724 10-20-2020, 06:01 AM
Last Post: regivanx
  webcam framerate bottleneck on linux? gleachkr 0 882 10-04-2020, 12:55 PM
Last Post: gleachkr

Forum Jump:


Users browsing this thread: 1 Guest(s)