Adding a new user
I'm trying to add a new user to my system (Distro Redhat 8.0). I do something like the following in bash:
useradd -p test -g nobody Newusername
New username gets added into /etc/passwd, however the password in /etc/shadow appears as "test" instead of being encrypted. And I can't login using that name. Can someone tell me what I'm doing wrong? Do I have to encrypt the password myself first? I tried checking out the "crypt" command but apparently it doesn't exist on my system.