LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-27-2002, 06:55 PM   #1
natso
LQ Newbie
 
Registered: May 2002
Location: England
Distribution: SuSE
Posts: 5

Rep: Reputation: 0
Question HELP!! Problem editing the shadow file in Single user mode


Hi

I am having problems editing the SHADOW file in Single User mode.

I can't recall the root password (Stupid Me), although I can log in using my normal users account (non priviledged).

I've tried booting into single user mode to change my root pwd, but the machine mounts the disk as read only, so i can't change the password??????

Can somebody please help me - I really don't want to have to rebuild the box from scratch

--------------------- We live and learn - hopefully!!! --------
 
Old 05-27-2002, 07:21 PM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
mounting read-only is a little weird... anyway, just about every Linux distro CD builds a running linux filesystem and such in RAM, and therefore makes a good quick and dirty recovery disk. Just let the sucker boot normally and then usually Alt+F2 or Ctrl+Alt+F2 will get you over to a shell. You can then mount the drive with the normal:

mount /dev/hdX /mnt

Usually, and this is amazing how often its the case, you have vi at your disposal, if not, you can always chroot to /mnt and then just change the password with good old passwd.

If all else fails, there is always http://www.toms.net/rb/

Luck,

Finegan
 
Old 05-28-2002, 03:22 AM   #3
natso
LQ Newbie
 
Registered: May 2002
Location: England
Distribution: SuSE
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks

Thanks finegan.

I'm resorting to toms......... as you suggested, so this'll hopefully do the trick.

cheers
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with editing rc.conf in single user mode Fredstar *BSD 1 07-17-2005 12:26 AM
single user mode... navaladi Mandriva 2 12-26-2004 02:41 AM
editing read-only files in single user mode cmiwebmaster Linux - Newbie 3 04-14-2003 07:15 PM
Edit a file in single-user mode ricardocastro Linux - Software 2 02-26-2002 04:37 PM
What is single-user mode?? rbanonuevo Linux - Newbie 4 01-28-2002 12:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:07 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration