View Single Post
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#251
Originally Posted by RobbieThe1st View Post
Ok, I need some help guys.
I've figured out that the problem with SSHD is that passwords/usernames aren't availaible.
I copied over the /etc/passwd and /etc/passwd- files, the second actually containing the encrypted root password, but I am still not able to login.
I tried copying over /usr/bin/passwd, and ran "passwd -S root". I got "Cannot determine your username".

Any ideas?
Doing "strace passwd -S root" would suggest that you need the /etc/nsswitch.conf file (I'd suggest creating a basic one rather than copying the existing one) and /lib/libnss_files.so.2.