Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Changing umask for Remote bamboo agents

John Tracy September 5, 2018

My dev team would like to change the umask under which the bamboo agents run so that people building plans can access their files after they have finished. The default is 022 and we need 002. Simply setting the umask in the bamboo-agent.sh script does not work. 

1 answer

1 vote
Anonymous Coward September 13, 2018

Simon says:

"

You can override the default system wide umask value in the profile of each user. For example you can add the line:

umask 002

at the bottom of the .profile configuration file that is located in the home of the user that runs the remote agent. (Don't forget to start a new session after making the change or source the file in a new shell). Depending on which shell the user is using you may have to set the value in a different file. (For bash you can set it either in ~/.profile or ~/.bashrc. Note that the tilde means the home of the user that runs the agent).

"

Simon out

John Tracy September 19, 2018

I have already tried this. I attempted to modify /etc/bashrc and /etc/profile as well without any luck. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events