Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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 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.
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.
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.
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.
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!!!
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.