i have created user with password option
#useradd -p user01 user01
When I tried to login with user01, am getting below error message, despite having correct password.
[user01@SRV1 ~]$ su - user01
su: incorrect password
I want to give password option in Single command.
please advice how to achieve the same