Skip to content

Commit

Permalink
DLPX-87205 CIS: default umask
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhishek Shukla committed Jan 5, 2024
1 parent 3980f5f commit ddaccd0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
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 @@ -713,4 +713,15 @@
block: |
. /etc/bash_completion.d/systemctl
. /etc/bash_completion.d/zfs
PATH=$PATH:/opt/delphix/server/bin
PATH=$PATH:/opt/delphix/server/bin
#
# CIS: Set default umask (DLPX-87205)
# 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 ddaccd0

Please sign in to comment.