New password for user in linux

passwd

#1

I removed password of user in boss linux but now facing problem on logging with same user


#2

Can you elaborate?

I mean, are you trying to login with a shared key rather than a password and it isn’t working, or did you think if you removed the password, then the user could login without a password?


#3

Actually accidently I removed user password but when I opened my PC, my user account displayed in my screen and I clicked on that user and typed a same password which I had removed and showed me that my removed password did not match…how to get enter to my pc because my pc showing only user name


#4

Can you log in as root user? If so set new password for that user

passwd userName