LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 07-24-2010, 10:03 AM   #1
basheer
Member
 
Registered: Mar 2009
Location: Bangalore, India
Distribution: CentOS6.5, CentOS7, Ubuntu14.04
Posts: 182

Rep: Reputation: 29
Angry Change root password in ubuntu


Hi all,
My password is easily guessable. And that is my sudoer account.
I'm unable to chang my password is ubuntu.
Even if I print
passwd
It asks for my old password. and thn asks for the new password twice,
It says password has been changed. But when I relogin, it accepts the earlier password only.

Please how do i chang my password?
 
Old 07-24-2010, 10:14 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Run "ls -l /usr/bin/passwd". This is one of the few commands that has suid root permissions. This allows a regular user to change his own password, which requires editing /etc/passwd and /etc/shadow.

Also post the contents of /etc/pam.d/passwd and if it exists /etc/pam.d/password-common.

Post any /var/log/messages log message for when you ran passwd. E.G.
Jul 24 10:16:01 qosmio passwd[17818]: password changed - account=jschiwal, uid=1000, by=1000

---

I'm not certain what you mean by your sudoer account. A sudoer isn't root, and the root account is disabled in Ubuntu.

Last edited by jschiwal; 07-24-2010 at 10:20 AM.
 
1 members found this post helpful.
Old 07-24-2010, 01:28 PM   #3
basheer
Member
 
Registered: Mar 2009
Location: Bangalore, India
Distribution: CentOS6.5, CentOS7, Ubuntu14.04
Posts: 182

Original Poster
Rep: Reputation: 29
Thanx jschiwal.
I am able to change my password.
 
  


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
how to change root password without knowing the grub password ramesh.mimit Red Hat 8 10-15-2011 05:12 AM
how to change the root password in ubuntu 10.04 basheer Ubuntu 2 07-23-2010 05:08 AM
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 10:28 PM
Change my root password in Debian Linux if I have the current password? panseluta Linux - Newbie 2 12-28-2008 02:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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