rohit_reflex
New Member.
623 views

Automatic Session Disconnection

Hi

Need an example on how to configure the automatic session disconnection based on the command risk.
If I am in the pcksh shell, and launch the kill command, for example, then exactly what do I need to do?
Have tried to put the kill command in command risk and specified the risk as 1 and added the Auto Disconnect option. But that does not work.

I already have something which blocks the kill command using the illegal commands script.

Regards,
Rohit
0 Likes
1 Reply
Micro Focus Expert
Micro Focus Expert

Re: Automatic Session Disconnection

Hi there,

I'm glad you asked! Please take a look through TID 7022237 - How to configure cpcksh with Enhanced Access Control (EAC) for complete session control and command risk. The steps for EAC are not necessary (although cool), as you have blocked the execution of the command with the illegal commands script as you described. Step 3 covers the Command Risk Auto Disconnect feature with an example for the "passwd" command. For more information on that configuration, please refer to Disconnecting the Session Automatically Based on Risk Level Settings from documentation. One key thing to note is where it states:

For a pcksh session: the disconnect based on the risk can happen either when the command /usr/bin/pcksh -o audit 1 or /usr/bin/pcksh -o audit 2 is defined in the Rewrite field for the Commands object, or when the Enhanced Access Control Policy script is added.


Without usage of EAC, then you'll need to specify a Command Rewrite for pcksh where the Command Control Audit level is set to 1, which enables an additional level of audit to use with the Command Risk [pcksh - Session Management]. For steps on configuring Rewrite, please refer to Modifying a Command.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.