Re: How to log in as root w/o password?



CptDondo <yan@xxxxxxxxxxxxxxxx> writes:

My basic setup denies root logins altogether.

Which is stupid. Sometimes root is needed. (and sudo is not a substitute).


But... From one single PC, as one single user, I would like to be able
to log in automagically without a password (actually via a script).

Use ssh with publick key authentication.


Is there a way to set up authkeys to allow this?

Auth keys?

I've tried a few times, but it seems the "no root login" thing overrides
public key authentication.

It may be. So get rid of the "no root login" or do a two step process--
public key to a user account, and then that user account uses has
passwordless login to root ( eg in wheel group with pam.d/su having the
line
auth sufficient pam_wheel.so trust use_uid
)

--Yan
.



Relevant Pages