Solved

Linux password

Posted on 2012-12-25
10
246 Views
Last Modified: 2014-03-11
I have linux gno installed and can't remember the administrator password.  Is there anything  I can do to change the current password?
0
Comment
Question by:WellingtonIS
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 3
10 Comments
 
LVL 9

Expert Comment

by:TazDevil1674
ID: 38720525
0
 

Author Comment

by:WellingtonIS
ID: 38720529
I have a thumb drive so will that work?
0
 

Author Comment

by:WellingtonIS
ID: 38720538
It zorin can I do that via command line?
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 78

Expert Comment

by:arnold
ID: 38720571
As long as you can boot the system, and as long as you can mount the partition (/) of the drive, you can navigate to the etc/shadow and modify the login.

Do you have a limited user that you can login with and then use sudo to elevate your rights?
0
 

Author Comment

by:WellingtonIS
ID: 38721524
that's just the problem. We don't know the passwords for the limited user either.
0
 
LVL 78

Expert Comment

by:arnold
ID: 38721567
Ok, the only option is to use a liveCd or USB stick to boot the sysytem and the mount the partition that has the etc directory and edit shadow to replace the current password with a new one.
The complexity depends on how your current system partitioned/setup.
I.e. does the system have raw partitions, lvm based partition or software raid with lvm overlay.
In the case of software raid, you must have info on which disks/partitions make up which volume to avoid data corruption.
RAID 5 groups will cause the most difficulties.

When dealing with software raid, you have to use mdadm, and other tools to be in a position to identify array members.
0
 

Author Comment

by:WellingtonIS
ID: 38721572
NO raid just a PC but I'll try thanks.
0
 
LVL 78

Expert Comment

by:arnold
ID: 38721665
if this is raw partitions or LVM only,
fdisk -l will tell you which drives are partitions how.
raw partitions you can simply do
mount /dev/sdax /mnt and look to see what is there.
if LVM partitions are referenced,
you would need to use pvscan, vgscan,lvscan
lvmdiskscan
to see what LVM partitions there are and then do the same
mount /dev/volumegroup/logicalvolume /mnt and look around there for etc.
0
 

Accepted Solution

by:
WellingtonIS earned 0 total points
ID: 38760771
Nothing seems to work.  Just close this we are going to redo the machine
0
 

Author Closing Comment

by:WellingtonIS
ID: 39919952
Question needs to be close machine was totally reinstalled.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Linux Mailserver setup & redundancy 2 123
pvcreate issue 5 99
PHP website on Linux - server DNS address could not be found. 18 114
RHEL 6.0 - Does it support SHA2? 7 41
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question