LinuxQuestions.org
Register a domain and help support LQ
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 07-26-2015, 01:21 PM   #1
F,Dillon@NYC
LQ Newbie
 
Registered: Jul 2015
Location: NYC, the BIG Apple
Posts: 12

Rep: Reputation: Disabled
how to change my linux password


how can I change my linux password
 
Old 07-26-2015, 02:07 PM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,516

Rep: Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039
Which one? Your user account password or the root password?

You can change your own password at any time, simply open a terminal window and type
Code:
passwd
You'll be prompted:
Code:
Changing password for user_name
Old password: <type it>
Enter the new password (minimum of 5 characters)
Please use a combination of upper and lower case letters and numbers.
New password: <type it>
Re-enter new password: <type it>
passwd: password changed.
Note, where you see <type it> you won't actually see anything as you type.

To change the root password it's pretty much the same but you need to log in as root or use sudo or use su - and you need to know the old root password.

Hope this helps some.
 
Old 07-26-2015, 02:55 PM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,494
Blog Entries: 1

Rep: Reputation: 487Reputation: 487Reputation: 487Reputation: 487Reputation: 487
$ passwd

As said above. If you're root you can do passwd <username> to change the password of ANY user.

# passwd joe
or
$ sudo passwd vick
 
  


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
How do I change the password on a Linux ISO? Tons of Fun Linux - General 7 01-24-2012 02:57 AM
Ubuntu 11.04 encrypted LVM password not working after user login password change prateekm21 Linux - Security 0 10-29-2011 02:20 PM
Change my root password in Debian Linux if I have the current password? panseluta Linux - Newbie 2 12-28-2008 03:02 AM
How can I change e-mail password(or linux account password) with php in website?? yusuf Programming 1 05-28-2004 10:39 AM


All times are GMT -5. The time now is 10:05 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