Skip to content

Commit

Permalink
Merge pull request #449 from delphix/dlpx/pr/abhi2196/ec491807-7a57-4…
Browse files Browse the repository at this point in the history
…59e-af31-863ef36f1721

DLPX-86533 CIS: default umask
  • Loading branch information
Abhishek Shukla authored Jul 24, 2023
2 parents 5a98530 + 729786c commit 73297c9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions files/common/etc/profile.d/set-umask-for-all-users.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

umask 027
Original file line number Diff line number Diff line change
Expand Up @@ -681,3 +681,14 @@
when:
- variant == "internal-buildserver"
- not ansible_is_chroot

#
# CIS: Set default umask (DLPX-86533)
# We need to set default umask as 027 in the /etc/bash.bashrc file,
# so that the same can be applied for all the users on the engine.
#
- blockinfile:
path: /etc/bash.bashrc
block: |
# Set default umask value.
umask 027

0 comments on commit 73297c9

Please sign in to comment.