nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Changing password at first login. Linux

This is a discussion on Changing password at first login. Linux within the Linux software forums, part of the Linux Getting Started category; Hi, How can we change the user password at first login. When he logs into the system with default password, ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 07-05-2006, 01:23 PM
Junior Member
User
 
Join Date: Jul 2006
Posts: 9
Rep Power: 0
sbhupathireddy
Send a message via Yahoo to sbhupathireddy
Default Changing password at first login. Linux

Hi,
How can we change the user password at first login. When he logs into the system with default password, it shouls ask for chage password. Does anyone has idea on this?
Thanks in Advance


Bhupathi Reddy
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-05-2006, 01:29 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

sbhupathireddy,

You can use -e option to passwd command, it immediately expire an account's password. This in effect can force a user to change his/her password at the user's next login. For example:
Code:
passwd -e rocky
See example http://blogs.cyberciti.biz/hm/index....user-password/
__________________
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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Linux force user to set a password the first time they login nixcraft Getting started tutorials 2 01-17-2008 08:43 PM
Block Single User Login using root password sayan4u86 Networking, Firewalls and Security 0 09-28-2007 07:47 AM
HP UX user lock password, change password, password aging rockdalinux HP-UX 0 12-20-2006 03:36 PM
linux changing run level Linux software 1 01-10-2006 07:25 PM
Login Without asking password sonaikar Linux software 1 02-20-2005 05:46 PM


All times are GMT +5.5. The time now is 01:27 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