47.2. Enabling and configuring session recording with SSSD from the CLI
You can configure and enable session recording for specific users and groups from the command line.
When you configure session recording, you use SSSD to define which users or groups to record by setting the scope option to one of the following values:
-
noneto record no sessions -
someto record only specified users and groups -
allto record all users
Prerequisites
-
Commands that start with the
#command prompt require administrative privileges provided bysudoor root user access. For information on how to configuresudoaccess, see Enabling unprivileged users to run certain commands. - You are using SSSD for authentication.
Procedure
Install the
tlogpackage:# dnf install tlogOpen the
sssd-session-recording.confconfiguration file:# vi /etc/sssd/conf.d/sssd-session-recording.confSpecify the scope of session recording and the users and groups to record. For example:
[session_recording] scope = some users = <user_name_1>, <user_name_2> groups = <group_name> exclude_users = <user_name_to_exclude> exclude_groups = <group_name_to_exclude>For more details, see the
sssd-session-recording(5)man page on your system.To enable the SSSD profile, run the following command:
# authselect select sssd with-tlogRestart SSSD to load the configuration changes:
# systemctl restart sssd