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 08-25-2005, 02: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, 02:14 AM   #2
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
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, 02: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, 03:08 AM   #4
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
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, 03: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, 05:55 AM   #6
saikat
LQ Newbie
 
Registered: Aug 2005
Location: bangalore
Posts: 2

Rep: Reputation: 1
hi. when booting linux , u can use the edit (e) and have a try.
 
1 members found this post helpful.
Old 08-25-2005, 05:55 AM   #7
saikat
LQ Newbie
 
Registered: Aug 2005
Location: bangalore
Posts: 2

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

Rep: Reputation: 52
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 06:00 PM.
 
Old 11-11-2021, 08:19 AM   #9
se_dib
LQ Newbie
 
Registered: Nov 2021
Posts: 1

Rep: Reputation: Disabled
Lightbulb

Try:
1. Single-User Mode. Pass 'single' to the kernel.
  • Press E on GRUB entry.
  • Append 'single' to kernel parameters (end of 'linux' grub command)
  • Press Ctrl+X or F10 (Fn+F10 on laptops) to boot.
2. Init. Pass 'init=/bin/bash' to the kernel.
  • Press E on GRUB entry.
  • Append 'init=/bin/bash' to kernel parameters (end of 'linux' grub command)
  • Press Ctrl+X or F10 (Fn+F10 on laptops) to boot.
 
Old 11-11-2021, 10:11 AM   #10
Jan K.
Member
 
Registered: Apr 2019
Location: Esbjerg
Distribution: Windows 7...
Posts: 773

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Well, they *do* say "better late than never", but I'm not entirely convinced...
 
  


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

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

All times are GMT -5. The time now is 05:45 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
Open Source Consulting | Domain Registration