From: | "J. Roeleveld" <joost@××××××××.org> |
---|---|
To: | "gentoo-user@l.g.o" <gentoo-user@l.g.o> |
Subject: | [gentoo-user] Any way to automate login to host and su to root? |
Date: | Thu, 14 Jul 2022 06:35:13 |
Message-Id: | 12022190.O9o76ZdvQC@poseidon |
1 | Hi All, |
2 | |
3 | I am looking for a way to login to a host and automatically change to root |
4 | using a password provided by an external program. |
5 | |
6 | The root passwords are stored in a vault and I can get passwords out using a |
7 | script after authenticating. |
8 | |
9 | Currently, I need to do a lot of the steps manually: |
10 | ssh <user>@<host> |
11 | su - |
12 | (copy/paste password from vault) |
13 | |
14 | I would like to change this to: |
15 | <some-script> <host> |
16 | |
17 | Does anyone have any hints on how to achieve this without adding a "NOPASSWD" |
18 | entry into /etc/sudoers ? |
19 | |
20 | Thanks in advance, |
21 | |
22 | Joost |
Subject | Author |
---|---|
Re: [gentoo-user] Any way to automate login to host and su to root? | "Mickaël Bucas" <mbucas@×××××.com> |
Re: [gentoo-user] Any way to automate login to host and su to root? | Grant Taylor <gtaylor@×××××××××××××××××××××.net> |
Re: [gentoo-user] Any way to automate login to host and su to root? | Steve Wilson <steve+gentoo_users@×××××××××××.uk> |