LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-22-2002, 03:01 AM   #1
cydscreen
LQ Newbie
 
Registered: May 2002
Distribution: kde
Posts: 3

Rep: Reputation: 0
Need some help login in to my box.


I installed linux red hat to my box.. well i partition my hd to 2 n install windows too. i got a problem with display and sound and kinda lose hope wit using linux

well i have not been using linux for quite sometime and wht do u know... I FORGOT MY LOGIN N PASSWORD...

please help me.. is there a way to retrieve my login or is there any alternative.. could i reinstall my linux or format it out of my system..

your help would be most helpful to me...
 
Old 05-22-2002, 03:50 AM   #2
Brion
Member
 
Registered: May 2002
Location: Belgium
Distribution: LinuxFromScratch
Posts: 85

Rep: Reputation: 15
some linux systems can be booted into single user mode without asking for a password. then u could change the passwords if u'd like.

when u see the lilo prompt, type:
linux 1
(assuming that linux is the label that boots ur linux partition, if not use the label u set up and add " 1" to it)

i don't know if red hat asks for a passwd when u boot into single user mode, but if it doesn't ur now able to change the passwords. if it does ask for the root passwd, then i guess this was a useless post
 
Old 05-22-2002, 04:46 PM   #3
ChimpFace9000
Member
 
Registered: Jul 2001
Location: So. Cal.
Distribution: Slackware 8.1
Posts: 55

Rep: Reputation: 15
is "linux 1" the same as "linux single"?
 
Old 05-22-2002, 05:17 PM   #4
Brion
Member
 
Registered: May 2002
Location: Belgium
Distribution: LinuxFromScratch
Posts: 85

Rep: Reputation: 15
yes
 
Old 05-22-2002, 05:45 PM   #5
Camion
LQ Newbie
 
Registered: May 2002
Distribution: Mandrake Debian RedHat
Posts: 10

Rep: Reputation: 0
the best way to solved this problem is by using a rescue disc.

you need to boot either from a floppy, a cd or even another linux bootable partition on cd. then you mount you own linux partition in /mnt for an example (e.g. mount /dev/hda1 /mnt) then you can edit your password file(s) as /mnt/etc/passwd (and /mnt/etc/shadow if you have a shadow password file) there you will find one line per user with different fields separated by columns (":"). on each line second field is the password (please check this because I don't have the doc near me, right now) it can have 4 different kind of values : "" if there is no password (shouldn't be the case), "*" if there is no valid password (when this user is there for system needs but nobody will use it to logon), a cryptic string with which you password will be controled, an 'x' (in passwd) which means that the cryptic value is stored in the shadow file.

the solution is to set this field to "" in (both) the file(s) (for user root) so that you can then restart the computer and logon with no password.

If having the root password temporarily set to blank is a security issue, I think you could change the password without rebooting by using the following command : "chroot /mnt passwd root"... but I never tried this by myself, and i'm not sure there are no risks. Another solution would be to disconnect all network devices when doing this.
 
Old 05-26-2002, 09:00 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Are you asking how to get rid of Linux alltogether in the end? If that's what you want to do, just reformat that portion of your partition to your OS's filesystem type.
 
Old 05-26-2002, 09:05 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
the easiest way isn't to use a rescue disc, it's to use the earlier advice and boot to single mode, much easier.
 
Old 05-26-2002, 09:33 AM   #8
Camion
LQ Newbie
 
Registered: May 2002
Distribution: Mandrake Debian RedHat
Posts: 10

Rep: Reputation: 0
yes but you need to be able to enter without password... and I'm not sure many distributions allow that.
 
Old 05-26-2002, 09:41 AM   #9
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
During boot up can't he enter Linuxconf by pressing "I" and then create a new user in there?

Of course he wouldn't have root privledges though...
 
Old 05-26-2002, 09:53 AM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
masterc, no he can't log in at all, therefore he needs to nuke the root password, which ALL distros will allow, exluding some systems which have had security systems like bastille specifically installed.

and, of course, linuxconf should never be used.
 
Old 05-28-2002, 04:11 AM   #11
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Why not? Can you jack your system up really bad there, or does it just not really work?
 
Old 05-28-2002, 05:06 AM   #12
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
it's VERY well known for screwing up most configuration files it touches. you might have noticed that newer distros will not let you install it as standard... there's a reason for that.
 
Old 05-29-2002, 12:24 AM   #13
cydscreen
LQ Newbie
 
Registered: May 2002
Distribution: kde
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks alot everyone... I found out my root password...
 
Old 05-29-2002, 05:39 AM   #14
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Caldera eDesktop v2.4 won't let you boot into single mode unless you know your password. And this is why:

#
# Inittab
#

# What to do in single-user mode.
~1:S:wait:/etc/rc.d/rc 1
~~:S:wait:/sbin/sulogin
 
  


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
box login??? raysr DamnSmallLinux 3 07-14-2007 01:03 PM
the login box is slow to appear damienduff Debian 2 06-26-2005 04:09 AM
box login: duckpits Linux - Software 1 03-05-2005 03:47 AM
SUSE 9.2 - No Login Box sKiBa SUSE / openSUSE 1 02-21-2005 05:54 PM
not able to login to my redhat box as a user curious_srk Linux - Software 7 11-28-2004 11:50 AM


All times are GMT -5. The time now is 08:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration