[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: maybe a bug in bash?
From: |
Martin D Kealey |
Subject: |
Re: maybe a bug in bash? |
Date: |
Fri, 30 Jun 2023 03:49:16 +1000 |
On Thu, 29 Jun 2023 at 23:42, Greg Wooledge <greg@wooledge.org> wrote:
> The answer to this is [...] just ssh in as root instead of nonroot + sudo.
>
> Some folks will scream that this is a bad idea, horrible practice, can't
> do it, etc. These folks are idiots. Ssh can be configured to allow root
> logins only when using key authentication. That's as secure as you could
> ask for. Certainly it's at *least* as secure as throwing a password around
> and using sudo and invoking layers of quoting hell.
>
Furthermore, ~root/.ssh/authorized_keys can be set up so that an ssh key
only allows one particular command to be run. (Use multiple keys if you
have multiple commands you want to run.)
-Martin
Re: maybe a bug in bash?, Kerin Millar, 2023/06/29