nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Linux Setting the screen to lock with password protection

This is a discussion on Linux Setting the screen to lock with password protection within the Getting started tutorials forums, part of the Linux Getting Started category; Problem: Linux Setting the screen to lock with password protection for all users Here we have powerful server for every ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Getting started tutorials

Linux answers from nixCraft.


Getting started tutorials So much to read, so little time! If that is your problem, we have solution. Read our FAQ and tutorials to help you cut through the clutter of information overload. Only members of "contributors" group can post new tutorials. Other members can just reply to thread.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-07-2006, 02:12 PM
tom tom is offline
Contributors
User
 
Join Date: Jun 2005
Location: London, UK
Posts: 213
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 5
tom is on a distinguished road
Default Linux Setting the screen to lock with password protection

Problem: Linux Setting the screen to lock with password protection for all users

Here we have powerful server for every user with X windows access. So we need the screen to lock with password protection after a specified time period for all logged in users of the system.

Solution:

=> Login to system (for example as the tom user)

=> Use xscreensaver command to setup screen save and screen lock time

=> Now a file called xscreensaver created in my home directory ( /home/tom/.xscreensaver )

=> Now copy this file to every user on system (you may need to login as the root). For example for user1:
Code:
cp /home/tom/.xscreensaver /home/user1/
chown user1:user1 /home/user1/.xscreensaver
chown will setup correct permission for user. You can also copy /home/tom/.xscreensaver to /etc/skel – so that everynew user will have same file by default.
Code:
cp /home/tom/.xscreensaver /etc/skel
useradd user1000
passwd user1000
ls –l /home/user1000/.xscreensaver
Enjoy!!!
Reply With Quote
  #2 (permalink)  
Old 13-07-2006, 05:56 PM
rockdalinux's Avatar
Is that all you got?
User
 
Join Date: May 2005
Location: Planet Vegeta
OS: Redhat
Posts: 708
Thanks: 15
Thanked 19 Times in 18 Posts
Rep Power: 10
rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light
Default

I just tried this one and it worked like charm. Thanks for sharing with us.
__________________
Rocky Jr.
What's wrong? I hope I am not making you uncomfortable...

Never send a boy to do a mans job.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Linux Cheat Sheets (awk, ed, sed, bash, screen, perl, and more) pkrumins Getting started tutorials 3 27-03-2009 07:12 PM
HP UX user lock password, change password, password aging rockdalinux HP-UX 0 20-12-2006 02:36 PM
set or how to change dns setting ubuntu linux network chiku Linux software 1 17-07-2006 06:30 PM
Howto: Ubuntu Linux setting up my (or your) printer toor Getting started tutorials 2 06-07-2006 04:41 PM
linux setting system-wide path Linux software 1 28-01-2006 11:19 AM


All times are GMT +5.5. The time now is 08:06 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38