LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   someone changed my root password. what do i do? (https://www.linuxquestions.org/questions/linux-security-4/someone-changed-my-root-password-what-do-i-do-228042/)

budds 09-08-2004 03:41 AM

someone changed my root password. what do i do?
 
hello everyone!

need i ask more?

HEEEELLP!!!!!

ppuru 09-08-2004 03:47 AM

you will need to take the system down, bring it up in single user mode.

if you are usnig grub, press e at the menu and edit the line that reads kernel. append a 1 at the end of the line and boot

if you are using lilo, type linux single

unSpawn 09-08-2004 04:26 PM

If someone changed your root password without your consent then taking the box off the 'net as Ppuru suggested is the best thing to start with, but I'd reboot from a bootable CDR (maybe your distro provided you with one, else try Knoppix for starters) and manually mount the partitions read-only. That will keep you from changing the system while you look at it. When you've done that you've gotta find out when it happened, who did it and why it succeeded. Please read up on what you've gotta do, look at the LQ FAQ: Security references, post #1 under "Compromise, breach of security, detection". It ain't the easiest thing, but if you want to learn you gotta try it. Anyway you're not alone, we're here to help you if you get stuck.

Ciccio 09-09-2004 03:42 AM

Do you know how it happend??? or is it just that you can't log in any more?

Anyway... search google for toms root boot, it's great and It's only 1.5 MB (if fits in a floppy) From there you can change it... You just have to log in with the floppy, then mount your / partition, the chroot there and passwd root. I've done it a dozen times... thus I learnt that a secure password should be easy to remember for me...

win32sux 09-12-2004 12:09 AM

Re: someone changed my root password. what do i do?
 
Quote:

Originally posted by budds
hello everyone!

need i ask more?

HEEEELLP!!!!!

well, you'll definitely need to re-install unless you have some way of verifying every system file for modifications, like with an md5sum log on a non-compromised machine/medium, for example... if you have nothing like that, then you can never trust that compromised install again... you need to retrieve your personal files from the disk, and then format and re-install everything... of course you can also analyse the disk and stuff (or make a copy for later analysis) if you want to figure-out how you got OWNED... but whatever you do, make sure you re-think your security strategy and tactics, as there is obviously an issue with them...

here's an informational link:

http://www.cert.org/tech_tips/win-UN...ompromise.html

just my two cents...


All times are GMT -5. The time now is 10:00 PM.