I am currently using ubuntu 20.04 machine.
I created a user with password using the useradd
command.
I need to change the PATH
variable of that user. So i used su - <username>
to interactivelly login to the user's shell. When it asked for the password, I provided the password of the user. But I am getting the below error.
ubuntu@ip-172-31-49-109:~$ su - harry
Password:
su: Authentication failure
Does anyone know how can I fix this and how I acn change the PATH
variable of the user