|
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-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  | |
|
|
|
|
|
|
|
|
|