Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

password recovery

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello Ranchers how are you? I am new on ubuntu linux 10.10 version.I have my ubuntu password can you explain me hoe to recover my linux password .please
 
author and jackaroo
Posts: 12199
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please explain what you are trying to do? If you have your Ubuntu password, then you have a Linux password (Ubuntu is a flavor of linux).

Most systems are designed so that passwords are not recoverable. However it may be possible to set a brand new password on an account.
 
Saloon Keeper
Posts: 22649
153
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The standard password configuration for virtually all modern-day Linux distros uses a one-way encryption scheme.

In other words, when you login, it does not decrypt the password stored in /etc/passwd (or more usually /etc/shadow). Instead, it encrypts the password you typed in and compares it to the encrypted password in /etc/passwd or /etc/shadow. Because the algorithm being used is encrypt-only (no decryption), you cannot recover a lost password. About as close as you can get is to mount a dictionary attack, and Linux also has provisions in it to make dictionary attacks as inconvenient as possible, since Bad People would otherwise use that method to break in.

So rather than recovering a password, what you need to do is reset the password to a known value. That has to be done by the system administrator.

If you lose the root password, that's a bigger problem, since you need to be logged in as root in order to issue the passwd command in most cases. To recover from that problem, you'd have to shutdown the machine, boot up into single-user mode (which doesn't require a login) and reset the root password. Then reboot into the normal operating runlevel.
 
Ranch Hand
Posts: 1923
Scala Postgres Database Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tim Holloway wrote:If you lose the root password, that's a bigger problem, since you need to be logged in as root in order to issue the passwd command in most cases. To recover from that problem, you'd have to shutdown the machine, boot up into single-user mode (which doesn't require a login) and reset the root password. Then reboot into the normal operating runlevel.



On ubuntu, there is no root login by default. All you do you do as user via sudo, and for sudo you need your own password.

However, you're right in the advice to do a (S)uperuser boot. You do it by booting from grub an entry, marked as ... (recovery mode)

 
There are no more "hours", it's centi-days. They say it's better, but this tiny ad says it's stupid:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic