nixCraft Linux Forum

nixCraft

Linux 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

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 07-05-2006, 03:12 PM
tom tom is offline
Contributors
User
 
Join Date: Jun 2005
Location: London, UK
Posts: 213
Rep Power: 4
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
Sponsored Links
  #2 (permalink)  
Old 07-13-2006, 06:56 PM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 581
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

I just tried this one and it worked like charm. Thanks for sharing with us.
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
Reply

Bookmarks


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 On

Similar Threads

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


All times are GMT +5.5. The time now is 02:28 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

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