Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

File permissions changed after deployment




Most probably a silly question. I have setup pipelines and deployment from bitbucket via AWS Codedeploy to my servers. But all files are deployed with permissions 666. Which is not really what I want.

Am I missing something obvious in the config?


The files are file on my local computer before being pushed to the repository.

Should I edit script to change permissions back to what I need them to be after deployment?


Thanks for all suggestions



Since posting the question I did some checking and I needed to edit the appspec.yml file.

- Files are now OK

- Folder are OK

- Specific folder I need with different permission is not being changed as needed.


part of my file with permissions

- object: /home/HOMEDIRECTORY/public_html
pattern: "**"
owner: wowner
group: wgroup
mode: 644
- file
- object: /home/HOMEDIRECTORY/public_html
except: [home/HOMEDIRECTORY/public_html/SPECIAL/PATH/cache]
owner: wowner
group: wgroup
mode: 755
- directory
- object: /home/HOMEDIRECTORY/public_html/SPECIAL/PATH/cache
owner: wowner
group: wgroup
mode: 777
- directory


So with this code. Files are changed ok. ALL folders are set to 755. But including my special which should be excluded and afterwards changed to 777 on it's own


Any suggestions?

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

⭐ Calling all Bitbucket and DevOps experts: Special showcase opportunity ⭐

Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...

1,497 views 4 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you