LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack Search this Thread
Old 01-08-2007, 03:01 AM   #1
elisewin
LQ Newbie
 
Registered: Sep 2005
Posts: 5

Rep: Reputation: 0
Unhappy reboot "you don't exist" problem on 2.4.21 hard-hat linux


hello to everyone!
My problem is this: I have a 2.4.21 hard-hat linux running on a board, with most of the applications coming from busybox due to the little capacity of the flash memory on the board. I needed to replace a non-busybox-init program and files related because I didn't want to have zombie processes (afaik, in busybox this is still experimental). The problem is: I just cant' succeed in rebooting the system, neither with busybox shutdown, nor with "normal" shutdown application (shutdown -r now).
In the second case, I get the "you don't exist, go away" message on the shell. I searched the internet and looked if that was a /etc/passwd file problem, but in my /etc/passwd file the line

root:x:0:root:/root:/bin/ash

seems to be correct (isn't it?). I log on as root, of course.
Something is strange when I issue "whoami" command, the system answers with

whoami:unknown uid 0

I don't know if this is related or not... anyway, I'm just thinking about anything, because I really need to solve this problem!!!

I'm wondering if you could help me!!! please!!

a desperate
Elisewin
 
Old 01-08-2007, 03:09 AM   #2
avallach
Member
 
Registered: Sep 2006
Location: Silesia
Distribution: Debian GNU/Linux 4.0, ArchLinux, OpenBSD
Posts: 190
Blog Entries: 2

Rep: Reputation: 30
Maybe you have wrong minimal uid set in /etc/login.defs and it causes your problem. This is just my guess.
 
Old 01-08-2007, 03:36 AM   #3
shorty943
Member
 
Registered: Dec 2006
Location: Tailem Bend. South Australia
Distribution: Mandriva 2006
Posts: 124

Rep: Reputation: 15
You don't exist go away? Who forgot their password? Or somehow your/etc/passwd file has been corrupted, there should be some information on sys users and passwords in that file. At least one would think so.
Hard hat Linux, is not a system I am familiar with, but at the sys level all Linux is pretty much same old, same old. Is the system currently running, and wont shutdown/reboot? How about brute force? Hit the reset, or(shudder) switch of for 10\15 secs and do a hard reboot. How ever, as your system tells you,you don't exist, logging in may pose a problem, on boot up.
My friend, I am sorry, you need more help than I have knowlege of, it appears, you may have rid yourself of more than you thought.

Log in as root of course NOT! Root is admin only. Did you not create a normal user account at install time? I hope you do not log in as root in everday use. To log in as root for everyday use, is to open your system to attack. No worry about virii, but a port scan and root kit attack can intrude, as root user has complete, unfettered access to the entire system. What am I saying. You should know this anyway.

Sorry I can't be more help. Must be some one here knows Hard hat.

Best wishes.

Shorty943.
 
Old 01-08-2007, 04:07 AM   #4
elisewin
LQ Newbie
 
Registered: Sep 2005
Posts: 5

Original Poster
Rep: Reputation: 0
a mistake in /etc/passwd line

Thank you for your replys!
First of all I just noticed there was a little mistake in /etc/passwd!! it was:
root:x:0:root:/root:/bin/ash
and it should be
root:x:0:0:root:/root:/bin/ash.
Now at least whoami answers correctly... but yet, for my system I don't exist (this sounds a little bit annoying... ^_^)

avallach -> I'm going to investigate on /etc/login.defs as you suggested... thanks!

shorty943 -> of course I can hw reboot the system, but that's not what I need to do... actually in an application I wrote, someone outside the board configures it and soon after this is done my board has to reboot all by itself ^__^.
Concerning root logging problem, don't worry my friend, I'm aware that this should not be done but since I'm sort-of building up the system, this is the only way to go... anyway, it is not on a network or anything-- thank you anyway for the advice!

I wonder if i'll find a solution for my reboot dilemma...
 
Old 01-08-2007, 04:53 AM   #5
elisewin
LQ Newbie
 
Registered: Sep 2005
Posts: 5

Original Poster
Rep: Reputation: 0
nonews...

no news... maybe i do not really exist!
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disabling hardware detection of "reboot" and "power" buttons Sabinou Linux - General 3 08-21-2006 07:03 PM
A decent audio player with a "music library" feature. does it exist for linux? martinr Linux - Software 12 04-17-2006 03:10 PM
Problem in installing java in "Red Hat Enterprise Linux ES release 4" raajesh_ak Linux - Newbie 2 12-27-2005 03:55 AM
Tiny Sofa 2.0 - I thought "halt", "reboot" were only root command ?? sorcerer Linux - Distributions 1 08-21-2004 03:28 PM
postgreSQL problem: Relation "pg_user" does not exist Noerr Linux - Software 10 06-03-2002 10:01 AM


All times are GMT -5. The time now is 01:17 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration