Cannot Save Script or SSH Task Containing chmod

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

When creating a script task or SSH task in a build plan, if the inline script includes a chmod command like chmod +x <filename>, saving the task command results in an error.

(Auto-migrated image: description temporarily unavailable)

No errors appear in the logs, failure appears to be client side. Validate this by confirming no errors are present in atlassian-bamboo.log or by Generating HAR files and analyzing web requests.

Cause

A firewall is blocking "unsafe" text strings from being sent through to the server. "chmod +x" is being detected as potentially unsafe or malicious, and the firewall is preventing the client (web browser) from sending this information through to the Bamboo server

Solution

Resolution

Configure exceptions in firewall for Bamboo

Updated on April 15, 2025

Still need help?

The Atlassian Community is here for you.