Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
General Linux > Display > Issue <<  14 of 83 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 4160
Last update: 11-16-07
Issue:
How can I set the screen to lock with password protection after a specified time period for all users of the system?
Resolution:
First, log in as a user (other than root) and use xscreensaver to set the appropriate screensaver and screen lock settings that you wish to be applied to all users. When you configure these settings, a file is created in this user's home directory called .xscreensaver. Now log in as root and copy this file to the directory /etc/skel. Change the ownership of this file to root by executing:

 
# chown root:root /etc/skel/.xscreensaver
      


Now, every new user that is created will have this file in their home directory, so they will inherit these settings automatically. For existing users, copy this file to their home directory and then execute:

 
# chown username:username ~username/.xscreensaver
      


This will set the correct permissions on the file so that these settings will take effect. Please note that this will overwrite any screensaver customizations the existing user has made.


How well did this entry answer your question?


good wrong incomplete out of date
General Linux > Display > Issue <<   14  of  83  >>