if the sshd is't being run in root account, then how can it let the remote ssh client run shell or other command in root account ?
if sshd call the login command, then the user could login as the root. becuase the user supplied the root passowrd, and the UNIX knows it.
BUT sshd also has a passowrd-less function. That is it stores the public key of the ssh client. In this situation, the ssh client don't type in a password for the login command. how the UNIX system let the ssh client run shell as ROOT user ? if the sshd is not a root account.
My question is sshd can be used to login server without a password.
so, need it to be run in root privilege ?
If not, how does the server allow the client to run in root account ?