Skip to content

Commit

Permalink
Merge pull request #469 from delphix/dlpx/pr/rupalimatkar/4d6c82a6-f9…
Browse files Browse the repository at this point in the history
…58-4d65-88c5-7372817b8fd6

DLPX-86535 CIS: restrict access to su command
  • Loading branch information
rupalimatkar authored Dec 17, 2023
2 parents 09bc8d2 + fa373ac commit 3156b5f
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,15 @@
regexp: '^(session[\s]+optional[\s]+pam_motd\.so.*)$'
replace: '#\1'

#
# Restrict su access to users that are part of the root group (gid 0).
# On a Delphix engine, this is restricted to the delphix user.
#
- replace:
dest: /etc/pam.d/su
regexp: '^#?[\s]*(auth[\s]+required[\s]+pam_wheel\.so.*)$'
replace: '\1'

#
# Prevent sshd from offering weak message authentication codes to clients.
#
Expand Down

0 comments on commit 3156b5f

Please sign in to comment.