LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-25-2005, 03:09 AM   #1
ninelives1980
LQ Newbie
 
Registered: Aug 2005
Posts: 5

Rep: Reputation: 0
how to log into linux without knowing the password?


hi,

just took over a PC here from someone i can't get hold of, who have left it to me. containing a 'red hat enterprise linux 3' installed inside as a stand alone machine.

problem is, when it has finished loading, and reaches the log-in screen where password is being prompted to be entered, I do not know the password that the previous user has set in order to get into linux desktop.

anyone who could help me around here? password cracks, or anything at all..appreciate it.

thanks.
 
Old 08-25-2005, 03:14 AM   #2
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 48
you should log into "single-user mode" by giving the "single" option to the kernel. These will help you:
http://www.redhat.com/docs/manuals/e...ot-passwd.html
http://linuxgazette.net/107/tomar.html
 
Old 08-25-2005, 03:53 AM   #3
ninelives1980
LQ Newbie
 
Registered: Aug 2005
Posts: 5

Original Poster
Rep: Reputation: 0
one thing i forgot to ask.......how do i know what login does the user uses to login?


well, the password change works. just tried it moments ago.


secondly, is the login and password meant for root or as an ordinary user?


thanks guys
 
Old 08-25-2005, 04:08 AM   #4
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 48
What you probably just changed was the root password. You can now log in as root using that password.

You can see which users are there usually by looking in /home or looking at the entries in /etc/shadow that have real password hashes.

As root, you can add users using the "useradd" command and you can change user passwords using
Code:
passwd <user>
 
Old 08-25-2005, 04:47 AM   #5
ninelives1980
LQ Newbie
 
Registered: Aug 2005
Posts: 5

Original Poster
Rep: Reputation: 0
by default, the root login would be " root ", and this can't be changed, am i right to say that?


okays, anyways, i'm on a local area network here connected to internet as well. so, how do I configure red hat linux enterprise linux 3 here to connect to the LAN?

thanks people
 
Old 08-25-2005, 06:55 AM   #6
saikat
LQ Newbie
 
Registered: Aug 2005
Location: bangalore
Posts: 2

Rep: Reputation: 0
hi. when booting linux , u can use the edit (e) and have a try.
 
Old 08-25-2005, 06:59 PM   #7
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 51
Quote:
by default, the root login would be " root ", and this can't be changed, am i right to say that?
Yes


Quote:
okays, anyways, i'm on a local area network here connected to internet as well. so, how do I configure red hat linux enterprise linux 3 here to connect to the LAN?
The GUI program for network configuration is 'redhat-config-network'. You can try running this as a command or it should be in the menus. If you don't have it installed try installing it with
Code:
up2date redhat-config-network
or
yum install redhat-config-network #assuming the guy you took it over from setup yum
You could also do it by editing the config files directly. The files are:
/etc/sysconfig/network - set hostname and default gateway, eg:
Code:
NETWORKING=yes
HOSTNAME=myserver.example.com
GATEWAY=192.168.1.1
/etc/sysconfig/network-scripts/ifcfg-ethX - where X is the number of the network interface you're using. They are numbered up from 0 so the first interface in your system will be eth0, the 2nd eth1 etc.
eg for static IP:
Code:
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.1.2
NETMASK=255.255.255.0
ONBOOT=yes
NOZEROCONF=yes
for dynamic IP:
Code:
BOOTPROTO=dhcp
ONBOOT=yes
TYPE=Ethernet

Last edited by tkedwards; 08-25-2005 at 07:00 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
knowing which bootloader my linux distr uses nag9_s Linux - Newbie 5 02-25-2005 03:06 AM
SSH password less log-in provo1234 Linux - Networking 4 12-30-2004 07:07 PM
How do i re-install or delete a user without knowing the username or password? burnoutKyle Red Hat 4 03-12-2004 03:21 PM
Log onto netware without a password GaX Linux - Networking 0 01-05-2004 11:58 AM
Uninstalling Redhat without knowing the user password DeathMaster1 Linux - General 4 06-20-2002 06:31 PM


All times are GMT -5. The time now is 11:49 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration