LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 04: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, 04: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, 06:01 AM   #3
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
To enlarge on the above post
Code:
sudo passwd USERNAME
Obviously change USERNAME as needed
 
Old 04-06-2015, 03: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, 04:40 AM   #5
vincix
Senior Member
 
Registered: Feb 2011
Distribution: Ubuntu, Centos
Posts: 1,240

Rep: Reputation: 103Reputation: 103
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, 04:58 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,903

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:19 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
Open Source Consulting | Domain Registration