Skip to main content
Solved

Files and Processes Execute Command Permission Denied


Forum|alt.badge.img+4

Hello All,

I am trying to get Cylance to install in a prestage enrollment and have been making slow progress thanks to all of you. Cylance requires the user to put in a token when installing. I have followed this post https://community.jamf.com/t5/jamf-pro/installing-cylance-package/m-p/145087#M134146 exactly. 

Everything seems to be running when I look at the logs, however I see this error: 

Result of command:
/bin/sh: /private/tmp/Cylance/install_cylance_with_token.sh: Permission denied

If I am understanding how executing a command works it should run as root. Could this be because this solution is a little older? Does anyone have any idea how to get this script to run? Thanks in advance.

Best answer by sdagley

@MrR0g3rs What did you set as the ownership and permissions of the install_cylance_with_token.sh file when you used Composer to create the .pkg for it? That error is telling you that the Jamf binary didn't have the necessary permissions to execute the script when your Files and Process command tried to run.

BTW, you might want to consider putting "Security" tools like Cylance on the Mac _after_ your other standard items are installed.

View original
Did this topic help you find an answer to your question?

3 replies

sdagley
Forum|alt.badge.img+25
  • Jamf Heroes
  • 3536 replies
  • Answer
  • November 1, 2022

@MrR0g3rs What did you set as the ownership and permissions of the install_cylance_with_token.sh file when you used Composer to create the .pkg for it? That error is telling you that the Jamf binary didn't have the necessary permissions to execute the script when your Files and Process command tried to run.

BTW, you might want to consider putting "Security" tools like Cylance on the Mac _after_ your other standard items are installed.


Forum|alt.badge.img+4
  • Author
  • Contributor
  • 13 replies
  • November 1, 2022
sdagley wrote:

@MrR0g3rs What did you set as the ownership and permissions of the install_cylance_with_token.sh file when you used Composer to create the .pkg for it? That error is telling you that the Jamf binary didn't have the necessary permissions to execute the script when your Files and Process command tried to run.

BTW, you might want to consider putting "Security" tools like Cylance on the Mac _after_ your other standard items are installed.


Thanks. I do have Cylance set to install on enrollment, rather than as a part of the Prestage, is that the right position in the install. So, should the permissions in Composer be set to root?


sdagley
Forum|alt.badge.img+25
  • Jamf Heroes
  • 3536 replies
  • November 1, 2022
MrR0g3rs wrote:

Thanks. I do have Cylance set to install on enrollment, rather than as a part of the Prestage, is that the right position in the install. So, should the permissions in Composer be set to root?


@MrR0g3rs Make sure in Composer you've given root Read and Execute permissions on that file

Another thing to ask, is are you running multiple policies at Enrollment, or do you have a single policy triggered by Enrollment that then runs a configuration script to trigger additional policies? If the former you should take a look at one of the following:

The DEPNotify app and the DEPNotify-Starter script

The swiftDialog app and @dan-snelson's script to drive it: https://snelson.us/2022/09/setup-your-mac-via-swiftdialog-1-2-7/

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings