cancel
Showing results for 
Search instead for 
Did you mean: 
Create Post
Level 9

Linux/Unix File Keyword Monitoring

Is it possible to pass an su userid and the password for that user in the command line of the Linux/Unix File Keyword Monitoring template?

I have already created a credential set to get access to the server, but access to this specific location requires an addition access thus the su userid and password. I already have the path and pattern, it is just passing this extra set of creds that I have issue with.

any thoughts?

pastedImage_0.png

0 Kudos
1 Reply
Level 11

Just change the Command Line from perl ${SCRIPT}; to bash ${SCRIPT} and in the script body put something like:

#!/bin/bash

sudo su - username

You will need to give the user that connects access to this command in your suders with the NOPASSWD option.