Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 256
  • Last Modified:

Linux password

I have linux gno installed and can't remember the administrator password.  Is there anything  I can do to change the current password?
0
WellingtonIS
Asked:
WellingtonIS
  • 6
  • 3
1 Solution
 
TazDevil1674Commented:
0
 
WellingtonISAuthor Commented:
I have a thumb drive so will that work?
0
 
WellingtonISAuthor Commented:
It zorin can I do that via command line?
0
Building an Effective Phishing Protection Program

Join Director of Product Management Todd OBoyle on April 26th as he covers the key elements of a phishing protection program. Whether you’re an old hat at phishing education or considering starting a program -- we'll discuss critical components that should be in any program.

 
arnoldCommented:
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
 
WellingtonISAuthor Commented:
that's just the problem. We don't know the passwords for the limited user either.
0
 
arnoldCommented:
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
 
WellingtonISAuthor Commented:
NO raid just a PC but I'll try thanks.
0
 
arnoldCommented:
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
 
WellingtonISAuthor Commented:
Nothing seems to work.  Just close this we are going to redo the machine
0
 
WellingtonISAuthor Commented:
Question needs to be close machine was totally reinstalled.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

  • 6
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now