The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Redhat Linux? Mr_Pinky UNIX for Dummies Questions & Answers 6 09-25-2005 09:45 AM
Redhat Linux? Insomniac Slackware 9 12-23-2003 06:53 AM
FTP on Redhat Linux 9 Spetnik UNIX for Dummies Questions & Answers 2 07-01-2003 07:11 PM
GUI for Redhat Linux savagebeast UNIX for Dummies Questions & Answers 2 11-09-2002 01:23 PM
redhat linux 7.3 matt2kjones UNIX for Dummies Questions & Answers 2 06-08-2002 01:10 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-20-2003
Sen Sen is offline
Registered User
  
 

Join Date: May 2003
Posts: 1
Linux RedHat. Help please.

I from russia. install rus Linux RedHat. When i load linux it ask me for user name and pass... and up of ask form label: Welcome to localhost... dont remember... what i want write in it?
(sorry, bad english.. )..
  #2 (permalink)  
Old 05-20-2003
oombera's Avatar
oombera oombera is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2002
Location: Cleveland, OH
Posts: 804
Are you saying you've forgotten your username and password? If so, this might help: http://cities.lk.net/lost_password.htm
Code:
0. Some newsgroups letters 
1. Boot your miniroot 
2. Mount the disk 
3. What your need to edit 
4. How to do by sed 
5. How to do dy by other username 

0. Some newsgroups letters. 
   See, for example, the letters on the Dejanews: 
    It really has happened. 
    Really exposes a security hole. 
    Root password stupidity problem! 

   Every day fetchs many poor users forgot the password. 
   It may be found a few thousands letters on this subject. 


1. Boot your miniroot 
   Boot your miniroot by diskets bootdisk and rootdisk. 
   If you haven't these diskets you can try download they from 
    Sources for distribution bootdisks  (Slackware, Redhat or Debian mirrors). 

   Download these image disks on your Windows ( or whatever ) hard disk 
   and after that you can create these two diskets by program rawrite. 
   If you haven't this program you can also download it here with source and docs. 
   It maybe, that this diskets don't contain configuration you computer need. 
   Then configure these diskets by distributive Linux CD. 

   See HOWTO by Tom Fawcett and Graham Chapman for more details 
   about boot and root disks. 
    Boot and Root disks 
    Bootdisks and the boot process. 


2. Mount the disk. 
   Mount your Linux disk to mountpoint, for example /mnt 

   mount /mnt /dev/hdb3 

   Now you can go to the mounted disk 

   cd /mnt 

   Search there one of well known Unix utilities vi or sed or mv. 
   The best way to use vi. But maybe you can't run vi due to some problems. 
   For example, vi uses some share libraries ( /etc/ld.so.conf ) 
   which aren't on the mounted disk. 


3. What your need to edit 
   Try now to edit your file /etc/passwd by vi or sed. But, attention! 
   Your file /etc/password is in fact /mnt/etc/passwd. You need to edit 
   the line contains the word "root". For example, if your /etc/passwd 
   contains the line 

   root:x3FrTg6uYT7.:0:0:root:/:/bin/sh 

   edit it and blank out the password field to the next: 

   root::0:0:root:/:/bin/sh 

   You should be able to login as root and you needn't any password for root. 
   After that, don't forget to change your root password to new one. 
    It maybe done by Linux utility passwd. 


4. How to do by sed 
   If your attempt to use vi was unsuccessful, try sed. 
   Here there is the format of the command sed you need: 

   sed /^root/s/.*:root:/root::0:0:root:/ /mnt/etc/passwd 

   For more details about sed see 
    Sed, a stream editor 
    Getting Started with Sed 
    Introduction to Unix's SED editor 


5. How to do by other username 
   So, maybe you have any other non-root username and you do remember 
   the corresponding password. Then you needn't vi and sed. 
   Reboot your Linux and login with this other username. 
   Copy /etc/passwd to your local directory, save it for safety, edit it. 
   Now reboot to miniroot by bootdisk and roodisk, mount disk 
   and restore your /etc/passwd file from local directory. 
   If all these advices doesn't help try any crack program ...

Last edited by oombera; 02-13-2004 at 03:57 PM..
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:36 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0