Help setup passwordless sudo for stanley #5444
lm-ydubler
started this conversation in
General
Replies: 1 comment 4 replies
-
Can't you run |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all, I need help setting up passwordless sudo for Stanley (Ubuntu 20.04)
First, I have a Rule successfully routing to an Action (a local shell script) that contains:
So this code successfully deletes standard files that don't require sudo, but, it doesn't delete the permission-unlocked test files in the
/tmp/
folder. So I just need instructions on how to get StackStorm/stanley to run sudo commands knowing the following:The user
stanley
(whose password I don't know) runs the commands.I setup the action's YAML file with the

sudo
andsudo_password
fields (using my admin's password):The pack installs successfully and the Rules/Actions have been verified to be firing.
To setup passwordless sudo for
stanley
I added the following line to the end of/etc/sudoers
:stanley ALL=(ALL:ALL) NOPASSWD:ALL
But it's still not deleting the completely unlocked files in the
/tmp/
directory so was hoping for some guidance or pointers on how to make it work.Thanks and best
Beta Was this translation helpful? Give feedback.
All reactions