I've created a user on CentOS with useradd -M username
. Now, I want to become that user just like su - username
.
It asks me for a password for that user but I didn't set a password for that user. As a workaround, I have to become root then su - username
works obviously.
First, I thought it asks for a root password but it is not the case. Any ideas?
sudo
, right?