Skip to content

Commit 3156b5f

Browse files
authored
Merge pull request #469 from delphix/dlpx/pr/rupalimatkar/4d6c82a6-f958-4d65-88c5-7372817b8fd6
DLPX-86535 CIS: restrict access to su command
2 parents 09bc8d2 + fa373ac commit 3156b5f

File tree

1 file changed

+9
-0
lines changed
  • files/common/var/lib/delphix-platform/ansible/10-delphix-platform/roles/delphix-platform/tasks

1 file changed

+9
-0
lines changed

files/common/var/lib/delphix-platform/ansible/10-delphix-platform/roles/delphix-platform/tasks/main.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,15 @@
329329
regexp: '^(session[\s]+optional[\s]+pam_motd\.so.*)$'
330330
replace: '#\1'
331331

332+
#
333+
# Restrict su access to users that are part of the root group (gid 0).
334+
# On a Delphix engine, this is restricted to the delphix user.
335+
#
336+
- replace:
337+
dest: /etc/pam.d/su
338+
regexp: '^#?[\s]*(auth[\s]+required[\s]+pam_wheel\.so.*)$'
339+
replace: '\1'
340+
332341
#
333342
# Prevent sshd from offering weak message authentication codes to clients.
334343
#

0 commit comments

Comments
 (0)