Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • Is there a password hash in /etc/shadow for user test? Also, what error message do you get? Commented Aug 26, 2019 at 10:44
  • yes the shadow file hashes are different for root and test .I am not able login to test user via ssh.the error shows related to authentication failures Commented Aug 26, 2019 at 10:46
  • 2
    Just set PermitRootLogin to without-password instead of no and use public key auth to login as root. Or just set a strong password. What are you supposed to achive by creating a test alias for root? Commented Aug 26, 2019 at 12:39
  • I'm not even sure how well supported multiple passwd entries with the same uid are. The userdel(1) from the shadow package will refuse the delete your test user. Having getpwuid(pw->pw_uid) return a different entry than pw is certainly very confusing. Commented Aug 26, 2019 at 12:50
  • Thank u moosy for suggestions will try with that without-password option.For test user we wanted to use some functionality which can done by root ,but unfortunately sudo ,su are absent in our linux customer build .so we have gone for setting the options for test as root with uid 0 Commented Aug 26, 2019 at 13:53