LinuxQuestions.org
Help answer threads with 0 replies.
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 02-18-2011, 12:25 AM   #1
shawez
LQ Newbie
 
Registered: Feb 2011
Posts: 1

Rep: Reputation: 0
Red face Root password not working from terminal


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

Last edited by shawez; 02-18-2011 at 12:27 AM.
 
Old 02-18-2011, 01:58 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Welcome to LQ

Make sure the keyboard layout in the terminal is correct.
Quote:
When I tried to use command Clt+Alt+F1
Try Clt+Alt+F6

Kind regards
 
Old 02-18-2011, 04:10 AM   #3
kingston
Member
 
Registered: Mar 2008
Location: Bengaluru, India
Distribution: RHEL 5.5, Solaris 5.10
Posts: 215
Blog Entries: 1

Rep: Reputation: 21
can you post your /etc/securetty file's content
 
Old 05-06-2013, 06:28 AM   #4
Fuzail
LQ Newbie
 
Registered: May 2013
Posts: 7

Rep: Reputation: Disabled
problem in root

Hi, i am having same problem and getting incorrect password error when i try to connect root after connecting any user like su -

please help
 
Old 05-06-2013, 07:15 AM   #5
fortran
Member
 
Registered: Nov 2011
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Fedora
Posts: 300
Blog Entries: 2

Rep: Reputation: 51
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
 
Old 05-06-2013, 11:40 PM   #6
Fuzail
LQ Newbie
 
Registered: May 2013
Posts: 7

Rep: Reputation: Disabled
Hi, i tried that but it is not happening with me

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
 
Old 05-07-2013, 10:46 PM   #7
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: No distribution. OpenBSD operating system
Posts: 1,711
Blog Entries: 8

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
Quote:
Originally Posted by pavi_kanetkar View Post
Now change your root password using
# sudo passwd root
Perhaps I am missing something (it would not be the first time), but why use sudo if already logged in as root (#)?
 
Old 05-08-2013, 12:20 AM   #8
fortran
Member
 
Registered: Nov 2011
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Fedora
Posts: 300
Blog Entries: 2

Rep: Reputation: 51
Quote:
Originally Posted by Randicus Draco Albus View Post
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 ?

Last edited by fortran; 05-08-2013 at 12:22 AM.
 
Old 05-08-2013, 09:21 AM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,613

Rep: Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962
Quote:
Originally Posted by pavi_kanetkar View Post
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.
 
Old 05-08-2013, 09:34 AM   #10
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,791

Rep: Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304
Quote:
Originally Posted by pavi_kanetkar View Post
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".
 
1 members found this post helpful.
  


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
Recover/Change UNIX root password from SSH terminal Dopamine Linux - Newbie 13 09-30-2009 06:19 PM
keys not working in terminal as root jms318 Linux - Newbie 1 11-26-2008 04:54 PM
Password Recovery in Edubuntu 7.04 - In Terminal, Root Login : su , password : ????? farhannaeem13 Linux - Security 3 11-30-2007 09:59 AM
root password not recognized in Gnome terminal anri Linux - Newbie 3 05-25-2007 06:27 PM
terminal reveals my root password shabene Linux - Security 4 06-10-2004 04:03 AM

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

All times are GMT -5. The time now is 06:12 AM.

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