LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-13-2018, 10:25 PM   #1
kevinkingdom
LQ Newbie
 
Registered: Jan 2018
Posts: 4

Rep: Reputation: Disabled
I want to change my root password.


Hi,every master

I forget my root password,and want it back.
Since it's a self-managed server,the stuff tells me to change root password by SystemRescueCd.
But when I use command mount /dev/sda3 /mnt/bootdir
the Xshell shows
mount: unknown filesystem type 'LVM2_member'
I don't know that to do next to recover my Centos root password


(BTW,that's temp password and can only access to SystemRescueCd)

Is there someone who can help me to solve this problem?

Last edited by kevinkingdom; 01-13-2018 at 10:49 PM.
 
Old 01-13-2018, 10:41 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,310
Blog Entries: 28

Rep: Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137
You should immediately remove your login details from your post, or you may find yourself pwned. It is less than wise to publish such information in the clear.

If this server is provided by a hosting provider, the hosting provider's tech support should be able to provide some guidance, assuming that they offer support.

You might try specifying the file system type in the mount command: https://askubuntu.com/questions/1437...ilesystem-type
 
Old 01-13-2018, 11:00 PM   #3
kevinkingdom
LQ Newbie
 
Registered: Jan 2018
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
You should immediately remove your login details from your post, or you may find yourself pwned. It is less than wise to publish such information in the clear.

If this server is provided by a hosting provider, the hosting provider's tech support should be able to provide some guidance, assuming that they offer support.

You might try specifying the file system type in the mount command: https://askubuntu.com/questions/1437...ilesystem-type

I just want to know how to get back my root password sir.My hosting provider don't provide eazy password recovery service and it's a Strictly self-managed, no support server.
So I have to use SystemRescueCd to change my root password(the only way they provided to me).
And I really don't care some hacker's hack my server,I just want to know how to get my linux centos root password back,so I can solve it myself at next time and help others,
I don't care they erase or steal my data because it's all Chinese and non of them are valuable.
And I believe most of people have standard integrity.
 
Old 01-13-2018, 11:03 PM   #4
kevinkingdom
LQ Newbie
 
Registered: Jan 2018
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
You should immediately remove your login details from your post, or you may find yourself pwned. It is less than wise to publish such information in the clear.

If this server is provided by a hosting provider, the hosting provider's tech support should be able to provide some guidance, assuming that they offer support.

You might try specifying the file system type in the mount command: https://askubuntu.com/questions/1437...ilesystem-type

I mean,I just want to know how to get my root password back with easy and brief way.I am a totally rookie at linux and it's hard for me to read your recommend article.
 
Old 01-14-2018, 04:04 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
is this a virtual server or a physical server at your home?
because, i don't see how you could use systemrescue CD on a remote machine.

so, if it's at home, it's easy enough:
- boot the machine "from the outside", with any live bootable medium
- edit the appropriate files on the local hard drive (iirc, /etc/passwd and /etc/shadow).

but look up a good tutorial on the web on how to do it!!!
 
Old 01-14-2018, 07:18 AM   #6
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
I'd try to boot to a live system and mount the centos partition manually to /mnt or something, then chroot into /mnt or wherever you mounted it and run passwd root. This doesn't always work but it's worth a try.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 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
change Root Password even if the password in the grub is also set sheelnidhi Linux - General 6 08-30-2006 07:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:44 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