Help about user changeing

– Please Write here your help request, –


Assalamualaikum, I 'm new in linux.
I accidently edited /etc/passwd to auto root my user name h4k and edited its puid and pgid to 0. Now my user is acting as curropted.not accepting any login.i can’t totaly login now. i didnot remebered its actual puid and pgid. Now how to get back the user. i want to fix the user. Can anyone assist me How to find out its actual puid and pgid to fix it.
I can’t remember the puid and pgid.if not possible,
Is that possible to access the installed apps in the h4k user from another user. I badly in need the softwares.i knew the apps but they can’t be easily installed…please help me.

  • Parrot version in use 5.3**:**

  • Kernel version (if you are not aware of it, open terminal and type uname -r): 6.1.0-1parrot1-amd64

  • Screenshots:

Hello, Alahi!

Can you log in another user?
And can you acess the sudo?

I dont know how we can recover this user, i think there is not a way to recover… cause the user lost the reference for the system.
In this case we can try to recover files.