LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training 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-05-2015, 05:22 AM   #1
jastisreedevi
LQ Newbie
 
Registered: Apr 2015
Posts: 3

Rep: Reputation: Disabled
changing password to a user


Hi
When i tried to change the password for a particular user as a root by using usermod command I didn't see any error at that time.But later when I tried to login again it is not accepting the new password as well as old password.Why its happening?Any help....
 
Old 04-05-2015, 05:30 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Welcome to LQ!

Have a nice time.

Usually 'passwd' is used to change user passwords.
 
Old 04-05-2015, 07:01 AM   #3
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,253

Rep: Reputation: 559Reputation: 559Reputation: 559Reputation: 559Reputation: 559Reputation: 559
To enlarge on the above post
Code:
sudo passwd USERNAME
Obviously change USERNAME as needed
 
Old 04-06-2015, 04:28 AM   #4
jastisreedevi
LQ Newbie
 
Registered: Apr 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thank u.I know the passwd command is used to change the user's password.But there is one option to change the password by using usermod command also.I didn't know the exact purpose for it.I am unclear about it.
 
Old 04-07-2015, 05:40 AM   #5
vincix
Member
 
Registered: Feb 2011
Distribution: Centos 6.7, 7
Posts: 514

Rep: Reputation: 48
Quote:
Originally Posted by jastisreedevi View Post
Thank u.I know the passwd command is used to change the user's password.But there is one option to change the password by using usermod command also.I didn't know the exact purpose for it.I am unclear about it.
I think you might confuse it with options that apply to a user's password, but not changing the password.
You can do several things with usermod - lock or unlock a user's password, make the user inactive after a period of time etc. There's also the -p option, which is to use an unencrypted pasword - as far as I heard - and which is obviously not a good idea.
 
Old 04-07-2015, 05:58 AM   #6
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,122

Rep: Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270
actually would be nice to show us exactly what have you tried
 
1 members found this post helpful.
  


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
A question about changing a user password... trist007 Linux - Newbie 7 11-12-2009 11:54 PM
User friendly message to user on password changing tanveer Linux - General 2 02-24-2009 08:56 AM
Changing password for user r_senthil28 LinuxQuestions.org Member Intro 1 08-27-2008 09:30 AM
changing user, root, password! itz2000 Linux - Newbie 3 11-19-2005 04:31 AM
changing the password of a user sadiboyz Linux - Newbie 2 04-21-2003 03:22 PM


All times are GMT -5. The time now is 10:30 PM.

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