Solved

Linux password

Posted on 2012-12-25
10
237 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
  • 6
  • 3
10 Comments
 
LVL 9

Expert Comment

by:TazDevil1674
Comment Utility
0
 

Author Comment

by:WellingtonIS
Comment Utility
I have a thumb drive so will that work?
0
 

Author Comment

by:WellingtonIS
Comment Utility
It zorin can I do that via command line?
0
 
LVL 76

Expert Comment

by:arnold
Comment Utility
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
Comment Utility
that's just the problem. We don't know the passwords for the limited user either.
0
Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

 
LVL 76

Expert Comment

by:arnold
Comment Utility
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
Comment Utility
NO raid just a PC but I'll try thanks.
0
 
LVL 76

Expert Comment

by:arnold
Comment Utility
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
Comment Utility
Nothing seems to work.  Just close this we are going to redo the machine
0
 

Author Closing Comment

by:WellingtonIS
Comment Utility
Question needs to be close machine was totally reinstalled.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
NTP Server in VMware 5 115
Sed question 2 45
how to run my script during boot in rhel 7 14 77
Problem logging tar errors 11 35
rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now