Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to update bashrc to include default umask #2628

alpana17 opened this issue Nov 6, 2019 · 2 comments


Copy link

@alpana17 alpana17 commented Nov 6, 2019

/etc/bash/bashrc is read-only file As /etc/bash/bashrc is symlink to /usr/share/bash/bashrc

To edit this file, I added

  • path: /etc/bash/bashrc
    filesystem: root
    append: true
    inline: |
    umask 027
    in ignition file. But when I passed it to user-data while launching the machine, it gave me error "Connection timeout"

Then I tried with same ignition just removed bashrc stuff, things worked as desired.

So, how can I make desired changes to bashrc?


This comment has been minimized.

Copy link

@bgilbert bgilbert commented Nov 7, 2019

Add a file with a .sh extension to /etc/profile.d.


This comment has been minimized.

Copy link

@alpana17 alpana17 commented Nov 8, 2019

umask in /etc/profile or /etc/profile.d is applicable for login users only
I wanted to add in bashrc to apply usmask to nologin users
How can this be done?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.