Hi Everyone,
I'm dealing with a rather mysterious issue with my server "losing" my user and root password. At any rate, I can't login at the console, with an "invalid login" error. (as root or a non-root user). I'm not using any sort of network authentication methods, just the default out of the box authentication. And I can go single user to reset my password. But I'm trying to figure out WHY this happens. I CAN still login w/ pubkeys via ssh.
If it'd happened once, I might be willing to chalk it up to my own stupidity, but it's happened repeatedly, and also occurs sometimes just for root, sometime just for the my user.
It doesn't seem particularly likely that I've got an attacker messing stuff up either either; I'm not running any internet accessible services and all I've got running locally is ssh; I'm not seeing any failed ssh logins in the logs either (though I guess a skilled attacker would wipe those). I guess I could have gotten a rootkit via a malicious port, but that doesn't really seem too likely to me either. I have relatively few ports installed on my base system, though I do have a whole slew that I built in a jail; still none of those are actually running since I'm still in the process of configuring stuff.
But I also don't see anything particularly enlightening in my log files, I see the failed logins logged, and that's pretty much it; nothing to indicate that PAM is screwed up or something like that. At least nothing I could see in "auth.log" or "messages.log".
I thought this could somehow be related to me running the jail, I've been building ports in, but this doesn't consistently cause my password to "get lost".
I've got an extra loopback interface, that I'm binding a jail to in the 127.0.1.0/24 range, but this seems relatively standard, so presumable it's not the problem.
Any ideas?
Thanks in advance,
-Pseudonomous
Edit:
I've checked now that my password hashes aren't changing in /etc/master.passwd, from before I can't login. They change after I reset my password (though, as I understand it, this is how things are supposed to work anyway), and I'll be able to log in again.
I can basically let the box sit, and after some period of time, I'll be locked out. I suppose I might try letting in sit in single user mode and see if this still happens after some period of time.
I'm dealing with a rather mysterious issue with my server "losing" my user and root password. At any rate, I can't login at the console, with an "invalid login" error. (as root or a non-root user). I'm not using any sort of network authentication methods, just the default out of the box authentication. And I can go single user to reset my password. But I'm trying to figure out WHY this happens. I CAN still login w/ pubkeys via ssh.
If it'd happened once, I might be willing to chalk it up to my own stupidity, but it's happened repeatedly, and also occurs sometimes just for root, sometime just for the my user.
It doesn't seem particularly likely that I've got an attacker messing stuff up either either; I'm not running any internet accessible services and all I've got running locally is ssh; I'm not seeing any failed ssh logins in the logs either (though I guess a skilled attacker would wipe those). I guess I could have gotten a rootkit via a malicious port, but that doesn't really seem too likely to me either. I have relatively few ports installed on my base system, though I do have a whole slew that I built in a jail; still none of those are actually running since I'm still in the process of configuring stuff.
But I also don't see anything particularly enlightening in my log files, I see the failed logins logged, and that's pretty much it; nothing to indicate that PAM is screwed up or something like that. At least nothing I could see in "auth.log" or "messages.log".
I thought this could somehow be related to me running the jail, I've been building ports in, but this doesn't consistently cause my password to "get lost".
I've got an extra loopback interface, that I'm binding a jail to in the 127.0.1.0/24 range, but this seems relatively standard, so presumable it's not the problem.
Any ideas?
Thanks in advance,
-Pseudonomous
Edit:
I've checked now that my password hashes aren't changing in /etc/master.passwd, from before I can't login. They change after I reset my password (though, as I understand it, this is how things are supposed to work anyway), and I'll be able to log in again.
I can basically let the box sit, and after some period of time, I'll be locked out. I suppose I might try letting in sit in single user mode and see if this still happens after some period of time.