LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 02-18-2002, 03:20 PM   #1
Freeman
LQ Newbie
 
Registered: Jan 2002
Posts: 11

Rep: Reputation: 0
Unhappy password


i havent lost my password just changed it. but it's not working. i just can't loggin to redhat

i'm the only user (root) i did not setup other users.

so what shall i do?
 
Old 02-18-2002, 03:25 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Do you not know how to use a forum in any way??? you've asked this question TWICE last week, annd got complete solutions BOTH times!!!!

http://www.linuxquestions.org/questi...threadid=14419
 
Old 08-03-2002, 11:06 AM   #3
pucherprencis
LQ Newbie
 
Registered: Aug 2002
Posts: 2

Rep: Reputation: 0
Question

Not so nice, indeed.
I red the previous posts and followed your hints but no success.
When in single mode, I have been able to change pwd (I got a message 'passwd: all authentication tokens updated successfully.' but if I type 'su'+<enter> (still at the sh-2.05a# prompt), I get 'su: incorrect password'.
Just another point: from the sh-2.05a# prompt, if I type 'login' then at the 'login: ' prompt I type 'root' and at the subsequent pwd request the new pwd, I still get 'Login incorrect'.
Another spec.: if I do a regular boot, I see some msgs. concerning problems with fierewall and IP masquerading. Does this interfere with login?
Thanks for your time.

Last edited by pucherprencis; 08-03-2002 at 11:15 AM.
 
Old 08-03-2002, 11:17 AM   #4
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Are you still in the single user mode (runlevel1) ??? Guys, really it was asked before million times, and acid is not offensive in any way, you are either learn or stick to something less brain intensive. This is the only way to change root pass if you can't do it regular way with passwd when you log in as root in one of the terminals (not runlevel1). Unless you password protect single user mode - Bastille can do it, I wasn't able to figure out how to pass protect single user mode on my own yet.
P.S. And this thread is old. Why did you change your root pass? Curiousity? Or you forgot one?

Last edited by neo77777; 08-03-2002 at 11:25 AM.
 
Old 08-03-2002, 11:27 AM   #5
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Quote:
Just another point: from the sh-2.05a# prompt, if I type 'login' then at the 'login: ' prompt I type 'root' and at the subsequent pwd request the new pwd, I still get 'Login incorrect'.
What does your /etc/securetty look like?
 
Old 08-03-2002, 11:29 AM   #6
A-dummy
Member
 
Registered: Jun 2002
Location: Kanpur,India
Distribution: RH-7.0 , 7.3
Posts: 130

Rep: Reputation: 15
I dont why it's not working with you.....ok just do some manual changes in your /etc/passwd while you
are still in single mode....just remove x from the password field of it(namely the second field).....or to
be on more safe side ,create a new user belonging to root group with blank password field.....keep rest
of the fields same as that of root's......type "su - <new_user>" + <enter>
 
Old 08-03-2002, 11:43 AM   #7
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
Once I had the same problem.
Since I also had Window$ on my machine, I was told here to download, prepare and boot from a single floppy linux system, then simply edit /etc/passwd to delete the wrong password.
It was easy and it worked.
See details at this thread: http://www.linuxquestions.org/questi...threadid=20048

Last edited by J_Szucs; 08-03-2002 at 11:46 AM.
 
Old 08-03-2002, 12:08 PM   #8
pucherprencis
LQ Newbie
 
Registered: Aug 2002
Posts: 2

Rep: Reputation: 0
Jjust to be quick, one post for all of yours, A-dummy & neo-7s.
1. I did not change the pwd; simply one morning I was not able to login again; I'm really new to linux: I am doing experience to leave MS servers to something less frustrating; this is the second time that this situation happens; the first time, I reinstalled everything, thinking that I lost the correct pwd; the second time I wrote down the pwd so I am sure that I am using the right one; no one have phisical access to the PC but it is connected to the Internet with ADSL and a public IP: hackers?
2. The /etc/securetty file lists 24 lines, where the first 11 contain 'vc/1' to 'vc/11'; the following 11 contain 'tty1' to 'tty11' and the last 2 both the '~' character.
3. The /etc/passwd file does not exits; neither the /etc/shadow.
Thans a lot for your help.
 
Old 08-03-2002, 12:44 PM   #9
A-dummy
Member
 
Registered: Jun 2002
Location: Kanpur,India
Distribution: RH-7.0 , 7.3
Posts: 130

Rep: Reputation: 15
have you got a /etc there or not.......if it there then create a /etc/passwd file with just one line

pucherprencis::0:0:root:/root:/bin/bash


& now try doing "su - pucherprencis" giving blank password......
 
Old 08-03-2002, 03:49 PM   #10
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Oh-uh, compromised!?! Think again about it if there's no passwd database how on earth you are supposed to get in, are you still in single mode? I would strongly concider reinstall with at least basic iptables firewall with a broadband connecton you are not only sweet target for script kiddies - you are a danger to others as well - don't be surprised if your ISP'd give you a courtesy call to inform you that your machine participated in DDoS (distributed denial of service) attack agains someone you might've not heard of.
 
  


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
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 10:28 PM
shadow password - password field ayhopkins Linux - Security 8 11-17-2005 05:25 AM
How can I change e-mail password(or linux account password) with php in website?? yusuf Programming 1 05-28-2004 09:39 AM
forgot my password ? i can change the password JrLz Linux - Security 9 04-06-2004 07:36 PM
Just change Samba password, not Unix password? sorrodos Linux - Networking 1 08-14-2003 07:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:00 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