Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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

    Scheduled Pinned Locked Moved Support
    buildmasterlinux
    2 Posts 1 Posters 7 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      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 scripts

      I am running as buildmaster username.

      Buildmaster: 5.6.11

      Product: BuildMaster
      Version: 5.8.0

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        Issue was due to the noexec option on the /tmp partition.
        Remove the noexec option and remount the /tmp.

        1 Reply Last reply Reply Quote 0

        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
        • 1 / 1
        • First post
          Last post
        Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation