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 can not entered root password via terminal while doing this it replied incorrect password even same password can be used from another GUI box.
When I tried to use command Clt+Alt+F1, only black screen comes. I am using coreutils 8.4-9.fc13 from fedora of 32 bits
Can anybody help me
Try to reset your root password.
Entering Recovery Mode
While you system is starting up, hold down the Esc to see the boot loader menu. After you see the menu:
Use the arrows to select the boot entry you want to modify.
Press e to edit the entry.
Use the arrows to go to kernel line.
Press a or e to append this entry.
At the end of the line add the word single or the number 1.
Press Enter to accept the changes.
Press b to boot this kernel.
A series of text messages scrolls by and after a short time, a root prompt appears awaiting your commands (#).
Now change your root password using
# sudo passwd root
i am running my machine on VMware i tried Esc then e and on kernel line typed single and pressed enter after that i press b to boot from that line but it doesnt stop on # to perform command.... it takes me to login screen directly after booting
Perhaps I am missing something (it would not be the first time), but why use sudo if already logged in as root (#)?
Ya but using sudo is a good habit because you can't be the root on every server and if you want to save time and do not want to see the permission denied message, I think we can use sudo on root.
Root wouldn't charge for it :-)
Actually I was not sure about the user that's why I said sudo. I think this is the problem, OP is not able to reach on command prompt.
@Fuzail - Are you using ESXi 3.5, ESXi 4.x, or ESXi 5.x ?
Ya but using sudo is a good habit because you can't be the root on every server and if you want to save time and do not want to see the permission denied message, I think we can use sudo on root. Root wouldn't charge for it :-)
You're missing the point. The user is ALREADY AT A ROOT PROMPT. Typing in 'sudo' is meaningless, and gets you nothing. And I've never had root 'charge' for anything. You need to read up on what sudo is/does...it gives a 'regular' user root level access to run commands. So, why would root NEED ANOTHER COMMAND TO GET ROOT LEVEL ACCESS????
Quote:
Actually I was not sure about the user that's why I said sudo. I think this is the problem, OP is not able to reach on command prompt.
@Fuzail - Are you using ESXi 3.5, ESXi 4.x, or ESXi 5.x ?
Fuzail, how are you rebooting the system, if you don't have root access? If you're using sudo, you can either:
Type in "sudo init S", and you'll be at a command-line with root access. Change the password there.
Type in "sudo vi /etc/shadow", and remove all the text between the first two colons ( on the line that begins with root. That will remove root's password, letting you do an "su - root"
Type in "sudo passwd root" and change it.
And you can just try pressing a key at the grub menu, to halt the auto-boot process. You should then be able to enter a single S, and press ENTER for single-user mode. But, you have not told us what version/distro of Linux you're using, under what kind of VMware, or what version of Grub, so things behave differently. Without details, no one can help you.
Ya but using sudo is a good habit because you can't be the root on every server and if you want to save time and do not want to see the permission denied message, I think we can use sudo on root.
Root wouldn't charge for it :-)
this is a very bad practice and possibly dangerous. You should avoid using sudo "on the fly".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.