Use password from specific "Credentials" in "After Login Command"

Use password from specific "Credentials" in "After Login Command"

avatar

Hi,

it is possible to copy the password from a specific "Credentials" entry and use it in the "After Login Command", e.g. with a variable like "$DATA_SOURCE_PASSWORD$ from a specific Data Source ID / Session ID (e.g. A2B9a222-xxxx-xxxx-xxxx-xxxxxxxxxxx) ?

The reason:

We would like to use it in a SSH Shell. There is a user deposit which is allowed to login via SSH. For more administrative tasks, the "root" user is necessary, which we would like to enter/login by type the (after login) command of "su root" and the password, read from a specific "Credentials" entry.

In consideration of Linux, it is generally known as not recommended to login by root on the console/shell and it should be turned off.

Perhaps there is also a better method to do this.

Best Regards

Adriano

All Comments (11)