I stumbled accross this problem when trying to create new FTP users for vsftpd. Upon creating a new user with the following command and attempting login with FileZilla, I would get an "incorrect password" error.
useradd f -p pass -d /home/f -s /bin/false
After doing this, /etc/shadow contains
Once I run the following command and provide the same pass pass
It appears that encryption happens when I run passwd, but doesn't upon useradd
Importantly after doing this, I am able to login to FTP with the exact same credentials.
I am using CentOS 5.11, vsftpd for FTP, and FileZilla for FTP Access
Dec 17 useradd: new group: name=f, GID=511 Dec 17 useradd: new user: name=f, UID=511, GID=511, home=/home/f, shell=/bin/false
Why does it not work when I pass
-p pass to useradd? What do I need to do to make it work?