I have added a user test with root permissions. In my sshd_config file I have kept permitrootlogin as No, to block ssh for root. I am not able to do ssh for root which works fine, but the issue is i am not able to login test user also via ssh.
How can I fix this issue?
/etc/passwd extracts:
root:x:0:0:root:/root:/bin/sh
test:x:0:0::/home/test:/usr/sbin/myshell
/etc/shadowfor usertest? Also, what error message do you get?PermitRootLogintowithout-passwordinstead ofnoand use public key auth to login as root. Or just set a strong password. What are you supposed to achive by creating atestalias forroot?userdel(1)from the shadow package will refuse the delete yourtestuser. Havinggetpwuid(pw->pw_uid)return a different entry thanpwis certainly very confusing.