Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 13th September 2006, 01:54 AM
Dr.Diesel Offline
Registered User
 
Join Date: Mar 2005
Location: Terre Haute, IN
Posts: 254
[I have no name!@localhost ~]# ?? Help!

Updated my FC5 machines for the first time since FC5 Final came out, now I have no users! When I "su" I get:

su: user root does not exist

When I try "adduser root":

adduser: unknown GID 100
adduser: name root is not unique

I have both the passwd and shadow files in /etc, I have even tried copying over the passwd- and shadow- files with no luck! The passwd file shows root and all of my other users.

Anyway to rebuild the user files?
__________________
F18
Reply With Quote
  #2  
Old 14th September 2006, 04:24 AM
Jman Offline
Registered User
 
Join Date: Mar 2004
Location: Minnesota, USA
Age: 27
Posts: 7,909
Do the passwd and shadow files contain a root line? (Likely the very first one.)

Can you su to a different user?
Code:
su - user
Reply With Quote
  #3  
Old 14th September 2006, 04:49 AM
a thing's Avatar
a thing Offline
Registered User
 
Join Date: May 2005
Posts: 288
From a live CD, add (or replace your root line with) this line:
Code:
root:$1$9LKpBOe8$jsR8IIIf3kSyK2oCzJxsV.:13405:0:99999:7:::
This will set your root password to temporary. Then chroot or boot into Fedora and set your users back up.
Reply With Quote
  #4  
Old 15th September 2006, 12:24 PM
Dr.Diesel Offline
Registered User
 
Join Date: Mar 2005
Location: Terre Haute, IN
Posts: 254
Guys this is really weird. I was not able to su cause any user I tried did not work. I tried running pwck, it did find errors and corrected them. I reset my root password, it worked for an hour or so, then went back to "I Have no Name". So then I copied my passwd and shadow files from my FC6 machines, again worked for a while then quit!

So then, I reformatted, completly fresh intall, everything was good for 1 day, then again it happened!!! I must be having some hardware failure?

The last time it rebooted I did get some HAL deamon error.
__________________
F18
Reply With Quote
  #5  
Old 15th September 2006, 01:05 PM
red_dungeon's Avatar
red_dungeon Offline
Registered User
 
Join Date: Mar 2006
Location: Switzerland
Posts: 179
probably hacked ?
This can't be a problem of fedora per se...

Pls post the output from
Code:
grep root /etc/passwd
when you get the weird 'I Have no Name' output...
__________________
LINUX - because booting is for adding hardware! :D
Reply With Quote
  #6  
Old 15th September 2006, 01:10 PM
Dr.Diesel Offline
Registered User
 
Join Date: Mar 2005
Location: Terre Haute, IN
Posts: 254
Quote:
Originally Posted by red_dungeon
probably hacked ?
This can't be a problem of fedora per se...

Pls post the output from
Code:
grep root /etc/passwd
when you get the weird 'I Have no Name' output...
Think so? I have the computer shutdown right now. I'll post the output when I get home. I figured the passwd/shadow files were getting corrupted somehow.
__________________
F18
Reply With Quote
  #7  
Old 15th September 2006, 01:21 PM
red_dungeon's Avatar
red_dungeon Offline
Registered User
 
Join Date: Mar 2006
Location: Switzerland
Posts: 179
okey, don't seems to be hack related (googled a bit), but the output would be useful...

and, perhaps there are some bak / old passwd/shadow files on your computer

Code:
ls -Al /etc/{passwd*,shadow*}
__________________
LINUX - because booting is for adding hardware! :D
Reply With Quote
  #8  
Old 15th September 2006, 01:24 PM
Dr.Diesel Offline
Registered User
 
Join Date: Mar 2005
Location: Terre Haute, IN
Posts: 254
Yea there was a passwd- file. But remember i've done a clean install, wiped the HD, installed fresh, and it happened again!
__________________
F18
Reply With Quote
  #9  
Old 15th September 2006, 01:34 PM
red_dungeon's Avatar
red_dungeon Offline
Registered User
 
Join Date: Mar 2006
Location: Switzerland
Posts: 179
errrrm...
strange. Never* had this effect. Maybe your disk is (getting) f*cked up ^^

*and I'm using different linux'es since 7-8 yrs...

fedora since fc3
__________________
LINUX - because booting is for adding hardware! :D
Reply With Quote
  #10  
Old 15th September 2006, 01:38 PM
Dr.Diesel Offline
Registered User
 
Join Date: Mar 2005
Location: Terre Haute, IN
Posts: 254
Yea, i haven't gotten any errors for anything else! The drive is fairly new, but the MB/CPU is old. I've used it for a file server for years, doesn't require much speed!
__________________
F18
Reply With Quote
Reply

Tags
name@localhost

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Localhost Booma Servers & Networking 7 21st April 2009 05:47 PM
127.0.0.1 vs localhost mbrad Servers & Networking 4 12th December 2008 04:40 AM
localhost Randy180323 Servers & Networking 7 15th July 2008 12:07 PM
No localhost!! cmuench Servers & Networking 11 4th May 2006 04:09 PM
apache@localhost.com pannet1 Servers & Networking 4 9th November 2005 10:46 PM


Current GMT-time: 12:25 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat