Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Linux Shell Execution
-
Hello,
I am trying to deploy a PHP website on a Linux server. At the end of the deployment, I would like to execute a shell script (using Execute). For testing, I entered "ls -l" as script text and the execution returns:
Writing script to temporary file at /tmp/buildmaster/scripts/15979a68fa264c5182e2f53fb5f4fdc5... Script written successfully. Ensuring that working directory (/tmp/buildmaster/_E838/_D0) exists... Working directory is present. Script file: /tmp/buildmaster/scripts/15979a68fa264c5182e2f53fb5f4fdc5 Arguments: Executing script... sh: 1: /tmp/buildmaster/scripts/15979a68fa264c5182e2f53fb5f4fdc5: Permission denied Script completed. Deleting temporary script file (/tmp/buildmaster/scripts/15979a68fa264c5182e2f53fb5f4fdc5)... Temporary file deleted.Permissions on the folder /tmp/buildmaster/scripts are:
drwxr-xr-x 2 buildmaster www-data 4096 Oct 3 14:53 scriptsI am running as buildmaster username.
Buildmaster: 5.6.11
Product: BuildMaster
Version: 5.8.0 -
Issue was due to the noexec option on the /tmp partition.
Remove the noexec option and remount the /tmp.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login