I have just started to use Scientific Linux (7.0) (although I assume this question might be distribution neutral..). The kernel version is 3.10.0-123.20.1.el7.x86_64.
Coming back to my question.
I switched to root account and from there created an new user account test-account using the command adduser test-account. It didn't prompt me for a password neither did I use the option to provide password. So I guess it's a "without password" account. I can login into this account from root account - which I suppose I'd be able to without providing password even if the test account had a password. However when I try to login into this(test-account) from a third account - it prompts me for password. And just pressing Enter doesn't work.
Is it possible to login into this account from a non-root account. Is there a way (without switching to root or using sudo) ?
adduserknows the-poption to set a password, tho its use is not recommended. So as root, dopasswd test-accountand set a password.su test-account. That switches to thetest-accountwithout a password prompt (which is what would happen even iftest-accounthad a password). However, when I try to switch to test account from anther non-privileged user account, kernel asks me for the password with a prompt, and it doesn't accept void (pressingeneter)