HELP ME HELP!!!! I can't Log in as root


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers HELP ME HELP!!!! I can't Log in as root
# 8  
Old 04-16-2002
Yes, I do have a password file and I just inspected it and there isn't anything wrong with it.

now, I cant make no changes to the password file because the permissions are -rw-r--r--

the read and write area means only root can manipulate this file because the file itself belongs to root.

also, when you talk about bring the system to single user mode, what exactly are the commands used to do this?? in other words, how is it done??
# 9  
Old 04-17-2002
If you're using Redhat 7.2, you have a few options to get to single-user. I think Redhat puts this stupid graphic selection screen in if you're using LILO. I can't remember exactly, but I think you can press ctrl+X to get to a text prompt. From there, you should be able to type:
linux single
to boot into single user. I'm not sure what to do if you installed grub instead.
If you can't do this, either use your boot disk (or rescue disk, if you created one) and at the prompt there, you can either type "linux single" (from resuce disk) or "linux single root=/dev/hda" (from regular boot disk, assuming /dev/hda is your root partition).

In most cases, by default, it will drop you into a root shell, where you can check the /etc/passwd and /etc/shadow file for the root account (the very top line). Look for anything odd in there, and post back to let us know what's going on.


Aside from this, all I can find on this particular error is that it's an obscure bug in GNU-fileutils. If the passwd file doesn't turn anything up, you may try recompiling and installing fileutils, the alpha (caution, test code!) of which can be found here:
ftp://alpha.gnu.org/gnu/fetish/

Good luck!
# 10  
Old 04-17-2002
If you have a good password file and the password entry for root exists, then perhaps your problem is that either the home directory or the login shell for the root entry does not exist.

My suggestion is that you post the password file in the forums for folks to review ..... you can always change it later Smilie If you don't want to post the entire file, just post the line for root.
# 11  
Old 04-17-2002
thanks alot to everybody thats trying to help me out.

anyway, I got the root account to work by booting from the linux cdrom. I typed linux rescue and I was presented with the opportunity to set things right. (a text based account)

I found out that some of the configuration files of root got messed up so I replaced the root's corrupt files with other user's file.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

I need it to prompt me for a root password, so I don't have to log as root

Hi folks, I'm trying to install a program, and I want to place some of the executables into /usr/bin so that they can be executed from any folder on the computer. I've been giveng the root password, but told never to log in directly as root. Instead, I can wait for a password prompt. However, I... (2 Replies)
Discussion started by: lunchtime
2 Replies

2. Shell Programming and Scripting

What are the differences between 'bash' and 'sh'

Hopefully this doesn't come off as too much of a "newbie" question or a flamebait. But I have recently begun working with a Sun Solaris box after having spent the past five years working with RedHat. From what i can tell, thing look fairly similar and the 'man' command is some help. But I've... (7 Replies)
Discussion started by: deckard
7 Replies

3. UNIX for Advanced & Expert Users

Can't log in other than root - display garbles

I'm hoping someone here can bail me out of this one. I have a box running SCO Openserver 5.0.2. I can log in as root fine, but if I try to log into any other account, I get: Last succenful login for xxxx "bunch of symbols" Standard copyright stuff and returns to a login... (8 Replies)
Discussion started by: craig2k
8 Replies

4. UNIX for Advanced & Expert Users

How to remove a file with a leading dash '-' in it's name?

Somehow someone created a file named '-ov' in the root directory. Given the name, the how was probably the result of some cpio command they bozo'ed. I've tried a number of different ways to get rid of it using * and ? wildcards, '\' escape patterns etc.. They all fail with " illegal option --... (3 Replies)
Discussion started by: GSalisbury
3 Replies

5. UNIX for Dummies Questions & Answers

mistyped shell path, now i can't login as the only user that can su to root

i mistyped the location of bash and now i can't login as the only other user who belongs to wheel on my freebsd box. since i'm having many problems with samba, this has frozen my attempts to get things resolved with the former issue. i've been told that 'su -m' should do the trick, but it's... (3 Replies)
Discussion started by: xyyz
3 Replies

6. UNIX for Dummies Questions & Answers

quoting echo 'it's friday'

echo 'it's friday' why appear the > (3 Replies)
Discussion started by: yls177
3 Replies

7. UNIX for Dummies Questions & Answers

HELP! The '/var/adm/message' file increase every few seconds???

Hi, guys, I have a big problem. I've got a sun solaris 4.1.4 workstation, and the /var/adm/message file will add one row every few seconds. It becomes a large file in a short time. I wander if there are some mistakes configuring the workstation. the /var/adm/message is as follow: ... (3 Replies)
Discussion started by: cloudsmell
3 Replies

8. UNIX for Dummies Questions & Answers

Can't su to root

I keep getting "su: Your own ID is unknown" whenever I try to su to root. Why is this??? I cannot find anything anywhere with this message. (6 Replies)
Discussion started by: stufine
6 Replies

9. Shell Programming and Scripting

Clearify what it means under 'WHAT' when hit the 'w'-command

I wonder how I shall read the result below, especially 'what' shown below. The result was shown when I entered 'w'. E.g what is TOP? What is gosh ( what does selmgr mean?)? login@ idle JCPU PCPU what 6:15am 7:04 39 39 TOP 6:34am 6:45 45 45 TOP 6:41am ... (1 Reply)
Discussion started by: Aelgen
1 Replies

10. Programming

i can't use 'make' in my computer?

I need to compile a file,but 'make' does not work.please tell me how to use it or need which tools? (3 Replies)
Discussion started by: dsun5
3 Replies
Login or Register to Ask a Question