Questions regarding Octopus deployment for Linux Server

We’re currently working on the Octopus auto deployment for Linux server. We found when we try to run the ‘sudo’ command we always got the error like:

sudo: Sorry, you must have a tty to run sudo Error on a Linux and Unix

We are trying to run systemctl status argus.* command.

Then we google it and found there’s a solution to disable the password prompt for the account (https://octopus.com/docs/infrastructure/deployment-targets/linux/sudo-commands#SudoCommands-EnablingSudocommand) But its against the Security policy. Can you help us here.

Hi @ramya_surendranath!

I’m sorry to hear that you are having issues with this particular style of deployment. Sadly, Octopus does require the steps listed in the documentation link you posted. One potential workaround that you may want to discuss with your security team is allowing password-less sudo access to a specific subset of commands only (for example, just systemctl), which may satisfy their security concerns.

Best of luck with this, and please don’t hesitate to reach out if you have any further questions.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.