Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Passwd Screw Up! - Help -, mistake in using passwd -l
peg110
post Jan 6 2003, 12:54 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 4
Joined: 6-January 03
From: Tunkhannock, PA
Member No.: 292



I have been playing around with linux for a little bit now, and I learn something new everyday. Today, I learned that the the command

QUOTE
passwd -l root


is not a good command to use. sad.gif

Suffice it to say, I did and now I can no longer log on as root or su. Does any have any suggestions to resolve this? PLEASE!! (I hope it doesn't sound like I am begging even though I am).

Thanks to any help any can offer.


Paul Gardner
linuxhelp.ca AT pgardner DOT net


--------------------
Paul Gardner
linuxhelp.ca AT pgardner DOT net
Go to the top of the page
 
+Quote Post
chrisw
post Jan 6 2003, 01:03 PM
Post #2


RMS is my Hero
******

Group: Admin
Posts: 634
Joined: 27-September 02
From: Louisiana
Member No.: 5



what boot loader are you using?
if you are using lilo..try the following:

on booting up....
when lilo shows...there will be a key sequence
to press....i think its control+x..

press this key sequence and it will put
you into the old lilo screen.

should look like this

lilo:

at that prompt type the following:

linux single

then it will start the boot up process...
and the eventually dump you out to
and command prompt.

at the command prompt type the following

passwd root

it should then ask you for a password.
type a password
and then it should ask you for it again..
it think you then type exit OR quit...
i dont remember...or see if you can
even reboot the computer by typing

shutdown -r now

now wait for it to reboot...going through
a normal boot up and when it gets
to the point of asking for a login
try logging in...

if you are using grub as your boot loader...
i dont know the steps of doing the same as
i mentioned if you use lilo..

see if this helps out...


--------------------

Chris W.
Go to the top of the page
 
+Quote Post
peg110
post Jan 6 2003, 01:24 PM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 4
Joined: 6-January 03
From: Tunkhannock, PA
Member No.: 292



I am using grub. Unfortunately, I am not able to get to the console until about 5:30 PM Eastern. But I will try it for the grub as well.

If there are any other suggestions, they too would be much appreciated.

Thanks


--------------------
Paul Gardner
linuxhelp.ca AT pgardner DOT net
Go to the top of the page
 
+Quote Post
chrisw
post Jan 6 2003, 02:42 PM
Post #4


RMS is my Hero
******

Group: Admin
Posts: 634
Joined: 27-September 02
From: Louisiana
Member No.: 5



this is how to boot to single user mode if you are using grub:
this is taken from the redhat site:

then just follow the rest of the information i provided earlier.

Booting Single-User Mode Directly
You may be able to boot single-user mode directly. If your system boots, but does not allow you to log in when it has completed booting, try single-user mode.

If you are using GRUB, use the following steps to boot into single-user mode:


If you have a GRUB password configured, type p and enter the password.

Select Red Hat Linux with the version of the kernel that you wish to boot and type e for edit. You will be presented with a list of items in the configuration file for the title you just selected.

Select the line that starts with kernel and type e to edit the line.

Go to the end of the line and type single as a separate word (press the [Spacebar] and then type single). Press [Enter] to exit edit mode.

Back at the GRUB screen, type b to boot into single user mode.


--------------------

Chris W.
Go to the top of the page
 
+Quote Post
peg110
post Jan 7 2003, 07:18 AM
Post #5


Whats this Lie-nix Thing?
*

Group: Members
Posts: 4
Joined: 6-January 03
From: Tunkhannock, PA
Member No.: 292



Thank You, Thank You, Thank You!

And I Definitely learned a valuable lesson.

NO "passwd -l root"


--------------------
Paul Gardner
linuxhelp.ca AT pgardner DOT net
Go to the top of the page
 
+Quote Post
chrisw
post Jan 7 2003, 10:32 AM
Post #6


RMS is my Hero
******

Group: Admin
Posts: 634
Joined: 27-September 02
From: Louisiana
Member No.: 5



tell you the truth...
i dont even know what passwd -l root does

but glad i could help out

-chris


--------------------

Chris W.
Go to the top of the page
 
+Quote Post
peg110
post Jan 7 2003, 01:09 PM
Post #7


Whats this Lie-nix Thing?
*

Group: Members
Posts: 4
Joined: 6-January 03
From: Tunkhannock, PA
Member No.: 292



QUOTE (chrisw @ Jan 7 2003, 10:32 AM)
tell you the truth...
i dont even know what passwd -l root does

but glad i could help out

-chris

actually the passwd -l LOCKS the user. It can only be done by root user. By locking out the root user, when I logged off, and tried to log back on... Suprise, I was LOCKED out.

Had I realized what I had done prior to logging off, I could have UNLOCKED it using the passwd -u root, but Alas, I screwed up.

Please learn from my mistake and DO NOT passwd -l root.

Thanks again.


--------------------
Paul Gardner
linuxhelp.ca AT pgardner DOT net
Go to the top of the page
 
+Quote Post
chrisw
post Jan 7 2003, 01:45 PM
Post #8


RMS is my Hero
******

Group: Admin
Posts: 634
Joined: 27-September 02
From: Louisiana
Member No.: 5



Ill keep that in mind


--------------------

Chris W.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st October 2017 - 02:45 PM