LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   password (https://www.linuxquestions.org/questions/linux-newbie-8/password-14531/)

Freeman 02-18-2002 03:20 PM

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?

acid_kewpie 02-18-2002 03:25 PM

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

pucherprencis 08-03-2002 11:06 AM

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.

neo77777 08-03-2002 11:17 AM

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?

neo77777 08-03-2002 11:27 AM

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?

A-dummy 08-03-2002 11:29 AM

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>

J_Szucs 08-03-2002 11:43 AM

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

pucherprencis 08-03-2002 12:08 PM

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.

A-dummy 08-03-2002 12:44 PM

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......

neo77777 08-03-2002 03:49 PM

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.


All times are GMT -5. The time now is 01:33 AM.