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



CptDondo <yan@xxxxxxxxxxxxxxxx> writes:

My basic setup denies root logins altogether.

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).

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

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

What user are you trying to login as with public key?

If root, well yeah, no root login would override it.

If it's a std user you're trying to auth as, the no root login setting
does not prohibit that.

If you need to login w/o password and do root things, I'd suggest a
combination of public key auth using a non-root account, and sudo on
the target box (configured to allow that user to do only very specific
commands as root, and to do so without prompting for a password).


--
Todd H.
http://www.toddh.net/
.