Set a Timeout for Inactive Sessions
Cockpit, by default, doesn't automatically expire inactive user sessions. To prevent unauthorized use of an unattended session, consider specifying a duration for when inactive user sessions expire.
What Do You Need?
- The Cockpit web console must be installed and accessible.
For details, see these topics: Install and Enable Cockpit and Log in to the Cockpit Web Console.
- An existing
cockpit.conf
file must be saved in the/etc/cockpit/
directory.Important:
The Cockpit configuration file (cockpit.conf
) isn't a system required or provided file. In cases where it doesn't already exist, you must manually create the file before performing the steps in this procedure. For more details about the use of this file, see thecockpit.conf(5)
manual page. - Administrator privileges.
Steps
Using the Cockpit Terminal CLI, perform the following steps to configure a session idle timeout duration in the Cockpit configuration file.