All Apps and Add-ons

Deploying script using deployment server returns permission denied

CMSchelin
Path Finder

I have a Bash script on our deployment server. The directory tree and the inputs.conf file:

bin
    bash_script.sh
local
    inputs.conf
    app.conf

The inputs.conf file:

[script://./bin/bash_script.sh]
interval = -1

I restart the deployment server. I then check one of the servers I have this app deployed to:

index="_internal" bash-script sourcetype=splunkd host="specific-hostname"

message from "/opt/splunkforwarder/etc/apps/bash_script/bin/bash_script.sh" /bin/sh: 1: /opt/splunkforwarder/etc/apps/bash_script/bin/bash_script.sh: Permission denied

That path and file does exist on the destination server.

What am I missing?

Labels (1)
Tags (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Verify the script has execute (x) permission granted.

chmod 700 bin/bash_script.sh
---
If this reply helps you, Karma would be appreciated.

View solution in original post

gcusello
SplunkTrust
SplunkTrust

Hi @CMSchelin,

in addition to the first intervene that must be the one hinted by @richgalloway, what's the operative system of your Deployment Server?

If it's Windows you have a problem to deploy Linux scripts from a Windows DS.

Ciao.

Giuseppe

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Verify the script has execute (x) permission granted.

chmod 700 bin/bash_script.sh
---
If this reply helps you, Karma would be appreciated.

CMSchelin
Path Finder

...truly the facest of palms. Thank you! That was in fact the answer.

Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...