Linux RedHat. Help please.


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Linux RedHat. Help please.
# 1  
Old 05-20-2003
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..Smilie )..
# 2  
Old 05-20-2003
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..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Difference Redhat Linux/RH Enterprise Linux

what is the difference between Redhat Linux and Redhat Enterprise Linux. whereas Redhat linux have Server installation options too. (2 Replies)
Discussion started by: hananabbas
2 Replies

2. Red Hat

Redhat Linux 4 crashed

Hi, I am having redhat enterprise linux 4 machine with kernel version 2.6.9-39.EL.Whenever I ran some java applications related to mechanical the system got crashed and powered off. last output is as shown below. reboot system boot 2.6.9-39.EL Fri Sep 24 15:23 (01:43)... (0 Replies)
Discussion started by: ktrimu
0 Replies

3. UNIX and Linux Applications

Redhat Linux 5

Can anyone help me outwith the post installation script.I'm newbie to scripting! i need to customize the post installation script using kickstart..here are the requirements to be set set permissions /etc/crontab =400 /etc/securetty=400 /etc/sysctl.conf=600 and following services to be set OFF... (1 Reply)
Discussion started by: bvkumar
1 Replies

4. UNIX for Dummies Questions & Answers

Redhat Linux?

I seen a pool that said Linux was the most popular Unix download. I then seen Redhat Linux is the most popular Linux download. Is there a difference? Is it the better program/s? (6 Replies)
Discussion started by: Mr_Pinky
6 Replies

5. Slackware

Redhat Linux?

Hi, I use linux and it is a great OS, I use Redhat Linux 9 and I was wondering are they going to update 9 or they'll be leaving that to the fedora project? I would like a stable linux distro. Thanks -n (9 Replies)
Discussion started by: Insomniac
9 Replies

6. UNIX for Dummies Questions & Answers

Redhat linux version

Guys How do i know the version of linux (Redhat) on one of our systems..Thanks in advance..The uname -r gives 2.4.18-0.13..Is it the kernel version (3 Replies)
Discussion started by: sssow
3 Replies

7. UNIX for Dummies Questions & Answers

GUI for Redhat Linux

I just installed Redhat Linux 8.0 and I do not know how to get to my GUI Desktop. Right now I'm just in the shell please help. (2 Replies)
Discussion started by: savagebeast
2 Replies

8. UNIX Desktop Questions & Answers

RedHat Linux Cd

I am wondering if anyone has copies (or can burn me a copy) of RedHat Linux. I will pay shipping charges... I don't have a CD burner and i dont want to run it off of my hard drive... please email me at: empireinfo623@yahoo.com or baldwitm@muc.edu (5 Replies)
Discussion started by: thedude623
5 Replies

9. UNIX for Dummies Questions & Answers

redhat linux 7.3

hi, just installed redhat linux 7.3 on my server, and put it in gnome gui. Does anyone know what software i need to run a web server??? and what software i need to set up a proxy to secure it? also, if these are free to download, can you give me the links. Thanx (2 Replies)
Discussion started by: matt2kjones
2 Replies

10. UNIX for Dummies Questions & Answers

Installing RedHat Linux 7

Hey everybody. Its been awhile since I last posted but in short I am now in posession of RedHat Linux 7.0 which I got from a book called the RedHat 7 Bible. As this is not an official distribution I cannot get product support from RedHat so I decided to try here. I have three computers. I... (2 Replies)
Discussion started by: TheGoof
2 Replies
Login or Register to Ask a Question