From 9c308bb6cb4298e870bdc00eac41c54cc46ac9a2 Mon Sep 17 00:00:00 2001 From: dbshah12 <121845071+dbshah12@users.noreply.github.com> Date: Mon, 7 Oct 2024 21:53:06 +0530 Subject: [PATCH] DLPX-86537 CIS: sudoers configuration (#498) * DLPX-86537 CIS: sudoers configuration PR URL: https://www.github.com/delphix/delphix-platform/pull/498 * DLPX-86537 Moved changes to files of etc folder * DLPX-86537 removed copyrights from the configuration files --- files/common/etc/logrotate.d/sudo-log | 7 +++++++ files/common/etc/sudoers.d/delphix | 5 ++--- 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 files/common/etc/logrotate.d/sudo-log diff --git a/files/common/etc/logrotate.d/sudo-log b/files/common/etc/logrotate.d/sudo-log new file mode 100644 index 00000000..b0510844 --- /dev/null +++ b/files/common/etc/logrotate.d/sudo-log @@ -0,0 +1,7 @@ +/var/log/sudo.log { + weekly + rotate 4 + compress + missingok + notifempty +} diff --git a/files/common/etc/sudoers.d/delphix b/files/common/etc/sudoers.d/delphix index a350907f..09b5bf5d 100644 --- a/files/common/etc/sudoers.d/delphix +++ b/files/common/etc/sudoers.d/delphix @@ -1,6 +1,3 @@ -# -# Copyright 2018 Delphix -# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -15,3 +12,5 @@ # delphix ALL=(ALL) NOPASSWD:ALL +Defaults use_pty +Defaults logfile=/var/log/sudo.log