Hello Chris,
* Do you receive any error on rundeck logs while performing su ?
* are you executing an script or a command step ?
* Did you try using something like ?
# sudo su - <user>
it should detect the sudo without specifying the "sudo-prompt-pattern"
Hope it helps,
Felipe
--
You received this message because you are subscribed to the Google Groups "rundeck-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rundeck-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rundeck-discuss/202409c1-3e84-43fd-9741-3c92faaa9f64n%40googlegroups.com.
-- --------------------- Felipe G. Skype : phil_buzz
Thanks Felipe. I tried both script and command step with no luck – appears to be hanging at the password prompt (nothing is displayed until I kill the job).
Unfortunately I can’t do the ‘sudo su - <user>’ approach since the user I’m connected as doesn’t have any sudo rights.
May have to look at tweaking the host’s permissions.
thanks,
chris
C2 General
From: rundeck...@googlegroups.com <rundeck...@googlegroups.com>
On Behalf Of Felipe Gutierrez
Sent: Thursday, 2 September 2021 2:38 am
To: 'Chris Gadd' via rundeck-discuss <rundeck...@googlegroups.com>
Subject: Re: [rundeck] run command with 'su'
CYBER SECURITY WARNING: This email is from an external source - be careful of attachments and links. Please follow the Cyber Code and report suspicious emails.
To view this discussion on the web visit https://groups.google.com/d/msgid/rundeck-discuss/d86315f7-bb87-2297-9053-5212884f7927%40gmail.com.