0

My ubuntu got hacked, and I want to use my /home and /etc if possible.

(assuming there's no executable file I need to run there)

Would it be a bad idea to do copy those folders from the hacked machine to new system?

(ie, is it ok to copy not executable files over?)

edit

I don't know much about how my system got hacked but the little I know is described here.
Why is elasticsearch user running SSHD?

eugene
  • 317

1 Answers1

-1

To be completely safe only Copy the file that are safe for sure. Those are the files you created like source code and your media files.

I cannot tell you what exactly was affected but since the maleware was running it probably has left some files in the /etc folder or any subfolder. Only copy the configurations that you manually changed since most of the files in that directory are automatically generated after you installed some programs.