Logo 
Search:

Unix / Linux / Ubuntu Forum

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds

what files were changed?

  Date: Dec 26    Category: Unix / Linux / Ubuntu    Views: 446
  

ubuntu 6.06LTS server edition

I screwed up big time.
I was root, entered the command chown -R kim:kim /

I hit the enter key as I was about to enter the directory name
Took a couple of seconds to esc out

How can I find out what files were changed? So that I change them back
to original?

Share: 

 

3 Answers Found

 
Answer #1    Answered On: Dec 26    


find / -user kim -print 2>&1 | less

or

find / -user kim -print > messed_up_files.txt

In the first one, files and errors will be printed to the screen and
paged with the "less" command, in the later one, the errors will be
printed to the terminal and the results will go into the file.

 
Answer #2    Answered On: Dec 26    


pretty amazing how many files got changed in 2-3 seconds
Almost back to normal now.

 
Answer #3    Answered On: Dec 26    

When I worked as a sysadmin (retired now), we would occasionally take
a machine that was due to be decommissioned or reimaged, and do an rm
-rf on the root filesystem, to see how long the machine took to become
unusable. I guess we were easily amused. :-)

Changing the default runlevel of a machine "reboot" was more fun. It
was entertaining to watch a new admin try to figure out what the
problem was and how to fix it. There were other evil tricks, but I'll
leave them to the imagination...

 
Didn't find what you were looking for? Find more on what files were changed? Or get search suggestion and latest updates.




Tagged: