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 12-15-2014, 02:14 PM   #1
allen brown
LQ Newbie
 
Registered: Dec 2014
Posts: 1

Rep: Reputation: Disabled
change password form root 14.04 lts ubuntu


trying to change my user password that got change when I did a security up date. I did not change it.

trying to use root@user-aspire-m3420:~# -d, --delete this should delete the password for my user name but nothing happens
could use some help thanks Al
 
Old 12-15-2014, 04:11 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,383

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
If a user password changed then this is cause for concern.

See examples maybe. http://linux.101hacks.com/unix/passwd/
 
Old 12-16-2014, 12:14 PM   #3
pcardout
Member
 
Registered: Jun 2003
Location: Socorro, New Mexico
Distribution: Debian ("lenny", "squeeze"), Linux Mint, XUbuntu
Posts: 218

Rep: Reputation: 24
Fixing user password

I did not recognize your sample code in your OP. first I would do CTRL-ALT-F1 to get to a command line without any GUI. (gui still there, CTRL-ALT-F7 to get back.)

Then try to log on as you with what you thought your password was. does it work?

Also ... if your password is really changed, are you locked out of your machine? Or are you auto logged in on boot.

if you can get to command line in any way you can fix anything with
Code:
passwd
command.

If, as you implied, you can log in as root and your user account is joecool, then
Code:
passwd joecool
from root fixes all.

Last edited by pcardout; 12-16-2014 at 12:19 PM. Reason: add detail
 
Old 12-16-2014, 12:23 PM   #4
pcardout
Member
 
Registered: Jun 2003
Location: Socorro, New Mexico
Distribution: Debian ("lenny", "squeeze"), Linux Mint, XUbuntu
Posts: 218

Rep: Reputation: 24
Just so you know ... if you are really locked out ... you can rescue your data using a boot CD. if nothing important on system, then just reinstall ... and be sure to enable root user next time so you have a fallback.
 
Old 12-17-2014, 09:53 AM   #5
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 17.0 at present.
Posts: 1,168

Rep: Reputation: 201Reputation: 201Reputation: 201
OK, maybe I'm wrong here, any Ubuntu I've ever installed never had a root user or password, you use sudo to elevate your permissions from your own account.
RedHat based Distros need a root account.

I've recently been informed that this can be used to reset your password though I've not tried it myself and am still skeptical.

Play Bonny!

 
Old 12-17-2014, 12:14 PM   #6
pcardout
Member
 
Registered: Jun 2003
Location: Socorro, New Mexico
Distribution: Debian ("lenny", "squeeze"), Linux Mint, XUbuntu
Posts: 218

Rep: Reputation: 24
Root password in Ubuntu

This being the newbie forum, one knows not what the OP knows or means, exactly. So let him/her respond so we can help them better.

Regarding your bonnie point, Soadyheid, you are correct that Ubuntu defaults to no root user ... something that has always annoyed me about the distro.

If you

Code:
sudo passwd
from your user account after setting up a new machine, that new password applies to the root user, and a root user is enabled.
The OP said he was trying to change a user password, but he also did not say he was locked out of his machine,
and then in his example he implied that he was already root, so it's really unclear what problem we are trying to fix!
Throwing several options at him is a good strategy. Your post about a workaround on grub for someone who IS locked out is very interesting,
and could certainly be useful!

Going back to the OP

Code:
root@user-aspire-m3420:~# -d, --delete
The above snippet of code makes no sense because -d is an "option" but there is no command. Not sure where you got it or what you mean.
Do you understand the basic linux command structure? (Let us know if not).
Perhaps you meant to type:

Code:
root@user-aspire-m3420:~#passwd -d
That WOULD disable the password for the root user. If you mean to disable your own password, and you are joecool, then you
want

Code:
root@user-aspire-m3420:~#passwd -d joecool
This assumes that you HAD enabled root, and that you already were root.

Do feel free to enlighten us about what you know, what accounts exist on your machine and what you are really trying to do.
 
  


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
[SOLVED] Change root password in ubuntu basheer Ubuntu 2 07-24-2010 02:28 PM
how to change the root password in ubuntu 10.04 basheer Ubuntu 2 07-23-2010 06:08 AM
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 11:28 PM
Change my root password in Debian Linux if I have the current password? panseluta Linux - Newbie 2 12-28-2008 03:02 AM


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