Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-09-2010, 08:43 AM   #1
LQ Newbie
Registered: Apr 2010
Posts: 2

Rep: Reputation: 0
Unhappy MAKEDEV : no such user : root

I have just started using fedora 12 on my system. Yesterday i forgot my username password and so as per the instructions given on the internet i opened the kernel in single mode and somehow tried to change my password by typing something like /etc/passwd. then i rebooted the computer and from then onwards the booting stops at the fedora prompt.
i opened again the kernel in single mode and there a message
"MAKEDEV : no such user : root"
Is there any way i can solve this problem without having to reinstall fedora?
Old 04-09-2010, 10:24 AM   #2
LQ Newbie
Registered: Mar 2010
Posts: 14

Rep: Reputation: 2
The reason for the error ; maybe is You are trying to log on as 'root' which is NOT permitted on most linux distro now, previously you could do that but it's Not encourage.

have you done something like this:
try following the steps again but at the prompt try adding a user.


adduser user
passwd password


then try logging as the "user" you created and "password" you gave above. tell us what happened and closed or modify this thread title, add the word "solved" if you could successfully log on to your system now.


Last edited by mcleod; 04-09-2010 at 10:30 AM. Reason: add more sentence.
Old 04-10-2010, 12:59 AM   #3
LQ Newbie
Registered: Apr 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Unhappy could not solve....

i did use passwd command where it asked for a new password but then it said "could not find the info on user hoot"(instead of root the computer is now addressing by hoot)

There r other users existing on the computer but somehow the root is missing.
I tried the command
adduser root
It said something like
"adduser: group root exists - if u want to add this user to the group use -g". I tried using this cmd but dont know how to.

I guess i somehow deleted or misplaced the user root when i was trying to change the password and now since it cannot find the root the booting stops at the fedora prompt.

So any suggestions?

And maybe u can boot with other user instead of root.Is it possible? If yes, how?
Old 04-10-2010, 06:43 AM   #4
Senior Member
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Linux Mint, Ubuntu
Posts: 1,574

Rep: Reputation: 349Reputation: 349Reputation: 349Reputation: 349
Booting into runlevel 1 shouldn't be a problem. Your problem might be that the password is not stored in /etc/passwd but in /etc/shadow. Note: back up /etc/shadow before editing it!

The entry in /etc/shadow on my desktop looks something like this:
(I replaced the actual encrypted password with "this_field_contains_the_encrypted_password" for illustrative purposes). I believe you can wipe out the password field, save the file, then reset the password using the passwd command - just press the enter key if prompted for the current password.

If this doesn't work, you didn't get this advice from me
Old 04-10-2010, 10:18 AM   #5
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Rep: Reputation: 57
I noticed he typed /etc/passwd at the prompt when he did the single user mode the first time. Of course, nothing should happen because /etc/passwd is not an executable file.

He needed to type passwd. The passwd command automates the update of both /etc/passwd and /etc/shadow. If he tried to change his password by editing these two files without using the passwd command, this could cause problems.

@ pags123

Just curios, do you have hoot in both of these files?

If yes, it should be root not hoot.

Also, if you can remember, what did you do last before this happen. For example, any upgrades to packages, system libraries or security updates.

let us know...

Last edited by dv502; 04-10-2010 at 11:09 AM.
Old 04-11-2010, 01:03 AM   #6
LQ Newbie
Registered: Mar 2010
Posts: 14

Rep: Reputation: 2
Did you re-edit the grub line you modify to erase the number 1 you put in your boot menu?

also please read 2x and try it, this guy explains it well and have visual example.

or read this well enough before doing this:

or try this instead:

The above sites is NOT owned, manage or have any connections to me whatsoever. I have used Fedora Core 1 along time ago so changing root maybe different in a way. I'm too lazy to install FC 12 and try there solutions for you but i think it is technically sound.

tell us what happens.

Last edited by mcleod; 04-11-2010 at 01:54 AM. Reason: more info.


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
Adding root privaliges to user accounts or auto login as root Val-Ent Linux - General 15 03-02-2010 04:27 PM
How to change a process running in root-user to non-root user ???????????????????? narendra1310 Linux - Software 4 10-29-2009 02:11 AM
MAKEDEV : no such user : root After uninstalling OpenOffice.... Soby Thomas Linux - Software 1 01-23-2009 08:19 AM
How can I have a script owned as root and run as root by a user: setuid? stickey bit? abefroman Linux - Newbie 9 04-19-2008 05:15 PM
why lftp command run failed when user isn't root, but ok when logining as root steven_yu Linux - Software 0 06-06-2007 08:36 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:04 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration