How should I configure for screen lock / auto logout?

Solution Verified - Updated -

Issue

  • Please let us know how to lock the screen automatically on not only remote connection like ssh but also console.
  • We would like to start logging out users after a fixed period of inactivity, in particular console logins which are often root.
  • "lock the screen" means to include such as "auto logout"
  • SSH, Physical Display and X windows is enough.

Environment

  • Red Hat Enterprise Linux 4
  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content