Home > Archive > Linux/Unix > June 2003 > Why linux won't let me log in as root or another user I created????





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Why linux won't let me log in as root or another user I created????
ITGirl25

2003-06-24, 11:53 pm

Now I am confused. Just started learning linux, a few weeks ago.

I put in my name and password and all of a sudden i can't log into the linux machine, its driving me nuts.

I tried to SSH into it, but I can't do anything, I can't log in as root.... I am trying to prevent a reset of the linux machine (since its considered a sin)

its keep giving me an "Access Denied".
THE PASSWORD IS CORRECT, I TRIED IT MANY DIFFERENT WAYS.

Just wanted to asked this question, without restarting, This must be a common issue that can be fixed..

Thanks guys.
ITGirl25

2003-06-25, 12:04 am

Well, I think, I might just restart this thing... one more thing. when I use the command, "logout" why does it say,

"There are stopped jobs"

this prevents me from loging out, for some strange reason.

The stopped jobs, how do i fix that?
Boulware5

2003-06-25, 12:13 am

You probably forgot your password. Try booting into single user mode and change the password. Here's how:

**You will have to hit your reset button to get into GRUB/LILO. That is ok as you have no other choice now.

If you use GRUB as your bootloader:
1. type [e] to enter into edit mode.
2. Look for a line such as kernel /vmlinuz-2.4.18-0.4 ro root=/dev/hda2 (yours of course will probably be different).
3. Press the space bar once to add a blank space, then add the word single to tell Grub to boot into single user mode. Press [Enter] to make the setting take effect.
4. You will be brought back to the edit mode screen. Type "b" and Grub will boot into single-user mode. You will be presented with a shell prompt that looks like:
sh-2.05#
5. You can now change the root password with passwd root.

Now, I have never used GRUB (so I had to look that up). I use LILO, and that's much easier. At the LILO prompt, just type linux single and it will boot you into that. Then do step #5. To get into a input screen in LILO, press TAB or either CONTROL + X. I can't remember which it is and I'm not rebooting my box to find out. Then you can enter in "linux single".
Boulware5

2003-06-25, 12:18 am

quote:
Originally posted by ITGirl25
Well, I think, I might just restart this thing... one more thing. when I use the command, "logout" why does it say,

"There are stopped jobs"

this prevents me from loging out, for some strange reason.

The stopped jobs, how do i fix that?



Are you logging out or just shutting down? There are stopped jobs means just that. When I shutdown, I use shutdown -h now.
ITGirl25

2003-06-25, 12:48 am

ok, i solved the problem:

I added a user the wrong way, and accidentally changed the root password..

I added the users like so:

useradd nameofuser
passwd
passwordofuser
passwordofuser

I didnt realize that I have to put
passwd nameofuser

so it changed the root password instead, how strange
Boulware5

2003-06-25, 1:00 am

quote:
Originally posted by ITGirl25
ok, i solved the problem:

I added a user the wrong way, and accidentally changed the root password..

I added the users like so:

useradd nameofuser
passwd
passwordofuser
passwordofuser

I didnt realize that I have to put
passwd nameofuser

so it changed the root password instead, how strange



So I typed all that for nothing huh? Hey can I get a picture of you for helping out?
ClintonN

2003-06-25, 7:10 am

quote:
Originally posted by Boulware5
So I typed all that for nothing huh? Hey can I get a picture of you for helping out?

Playa!
ITGirl25

2003-06-25, 2:39 pm

quote:
Originally posted by Boulware5
So I typed all that for nothing huh? Hey can I get a picture of you for helping out?


ok, ok, whatever , thanks anyway for the help
Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2009 examnotes.net