Here's the issue I have been having lately. I created a new user using useradd, then manually created the MD5 hash key for the user and placed into /etc/passwd for the newly created user.
Created the users home dir on the mounted USB drive. I was able to log in remotely and configured dropbear not to accept root login, and placed this new user under the sudoers list.
All was working fine, and when the user logged in showed the username@server, like normal.
A co-student that suggested the hardening procedure to block root login and enable a sudoer, as stated above then informed me of Issri (Text based IRC chat) and screen (allows me to detach screen to return to it at a later time).
Now all of a sudden when I log in with this user it comes up as I have no name!@server. All the research I have done says that the /etc/psswd file is not able to be read by users.
So I checked the permissions of said file and found that /etc/passwd(777) is linked to /tmp/etc/passwd(644). The permisson seem setup correct. However when the specified user runs cat /etc/passwd, nothing shows same if said user runs cat /tmp/etc/passwd.
If the user runs whoami, nothing is returned.
If the user runs ssh, states unknown user 1000
I can't literally find nothing about this in the forums, any ideas I could try?
after playing around for a while and trying different things... including setuserpasswd, which didn't even change the password to the user specified in the command. and somehow changed my root user password to something that I didn't even set...
Was forced to do a factory reset, figured I'd update the firmeware so now I'm on DDWRT kong-mod 19545..