LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I want to change my root password. (https://www.linuxquestions.org/questions/linux-newbie-8/i-want-to-change-my-root-password-4175621587/)

kevinkingdom 01-13-2018 10:25 PM

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?

frankbell 01-13-2018 10:41 PM

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

kevinkingdom 01-13-2018 11:00 PM

Quote:

Originally Posted by frankbell (Post 5806193)
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.

kevinkingdom 01-13-2018 11:03 PM

Quote:

Originally Posted by frankbell (Post 5806193)
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.

ondoho 01-14-2018 04:04 AM

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!!!

Mill J 01-14-2018 07:18 AM

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.


All times are GMT -5. The time now is 10:35 AM.