LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-16-2014, 11:03 AM   #1
smth333
LQ Newbie
 
Registered: Feb 2011
Posts: 1

Rep: Reputation: 0
Using the CLI how do you set a temp passwd that must be changed at first login


Using the CLI how do you set a temp passwd that must be changed at first login.
 
Old 04-16-2014, 11:19 AM   #2
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,190
Blog Entries: 10

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Welcome to LQ!

first login to what exactly?
 
Old 04-16-2014, 11:21 AM   #3
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 3,836

Rep: Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360
Simple:

Code:
adduser YOURNAME
passwd YOURNAME 
enter-temp-password
change -d 0 YOURNAME
Thats assuming that you've enabled password expiration, of course. Or password 'aging.'

Last edited by szboardstretcher; 04-16-2014 at 11:24 AM.
 
Old 04-16-2014, 12:38 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,956

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by smth333 View Post
Using the CLI how do you set a temp passwd that must be changed at first login.
Please don't post homework questions verbatim.

And did you read the man pages on the passwd and useradd commands? Pay particular attention to the "--expire" flag on the passwd command.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH Login - Bypass public Key check (temp disable passwordless login) Lunar Linux - Networking 1 02-23-2014 05:25 AM
[SOLVED] NIS server:- how to set user must change his passwd on first login form client anujkaushal Linux - Server 4 09-07-2011 02:11 AM
Checksum for /etc/passwd changed m2azer Linux - Security 3 12-12-2007 11:58 AM
Upgrade to DD and it changed passwd. ty13 Ubuntu 2 08-20-2006 07:49 PM
changed the login shell in /etc/passwd to the wrong path infamous41md Solaris / OpenSolaris 3 07-03-2004 08:32 PM


All times are GMT -5. The time now is 01:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration