Skip to content

Commit bca3262

Browse files
committed
DLPX-86535 CIS: restrict access to su command
PR URL: https://www.github.com/delphix/delphix-platform/pull/469
1 parent 09bc8d2 commit bca3262

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+
# Restricting su access to ensure only authorized users in a specific group
334+
# can elevate privileges to another user, like the root 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)