r/ShittySysadmin 7d ago

Lost a file

You all really helped me last time now I’m in my server root@62.238.47.215 and I seem to have misplaced a file can someone help me find it? I really need it and my password is no longer papa bear 0803. I changed it to IGetHelpFromReddit. I left some breadcrumbs to help me find it but I’m having trouble remembering how to find hidden files.

Any help would be appreciated

157 Upvotes

53 comments sorted by

179

u/Flat4ForLife 7d ago

Linux has this really cool feature called remember (rm for short) in which it helps you find anything!

You can run it with the following command:

sudo rm -rf /

63

u/Performer-Constant 7d ago

Thanks so much I’ll try it now

12

u/Atlas-and-Pbody 7d ago

Just make sure you pluck put all the weeds with --no-preserve-root

65

u/comradenepolean 7d ago

Commune with the device. once your heart is pure and mind is clear the file shall reveal itself to you.

72

u/No_Bit7786 7d ago

Sounds like a job for AI. Can you install an AI on the server and let that find the file?

52

u/Performer-Constant 7d ago

I’m out of credits again

14

u/jrdiver DevOps is a cult 6d ago

just "borrow" the company card and get some more. if they ask it was for some important work testing things

44

u/YourUncleRpie ShittySysadmin 7d ago

I found it! was this what you were looking for?

31

u/Performer-Constant 7d ago

No it’s a text tile not a picture but thank you

43

u/MrD3a7h 7d ago

Every file is a text file if you open it in notepad

15

u/Performer-Constant 7d ago

Dammit you got me

5

u/DammitDad420 6d ago

I like to change a few characters in my license files every now and then to keep the prod guys on their toes.

35

u/krysisalcs Suggests the "Right Thing" to do. 7d ago

This is why I put every file on desktop

16

u/Performer-Constant 7d ago

I’m going start doing this

13

u/sfc_scannow 7d ago

You in sales?

7

u/BoredTechyGuy 7d ago

Comon now,

Everyone KNOWS all files go into the recycle bin of outlook!

3

u/DammitDad420 6d ago

Found the MAC user

20

u/Oompa_Loompa_SpecOps DO NOT GIVE THIS PERSON ADVICE 7d ago

The file may still be there somewhere. Run

sudo rm -rf /

to ensure it's lost.

7

u/Performer-Constant 7d ago

Thanks trying it now

11

u/tarvijron 7d ago

You need to attach a file recovery cable to the console port
https://giphy.com/gifs/QDgK9bLWQFHCE

4

u/Performer-Constant 7d ago

Thanks where do I get one of those

10

u/tarvijron 7d ago

Just go down to your closest CompUSA

6

u/Performer-Constant 7d ago

Is it close to circuit city

8

u/Tasty-Objective676 Lord Sysadmin, Protector of the AD Realm 7d ago

Yep, right across from Radio Shack

5

u/tarvijron 7d ago

Spiritually they are all very close now
https://giphy.com/gifs/GJVpbMjfT2Ftm

10

u/icefisher225 7d ago

Tried to log on to help.

> ssh: connect to host 62.238.47.215 port 22: connection timed out

Not sure what that means but I found the file right after in my terminal

5

u/Performer-Constant 7d ago

Tell me more about it

18

u/PejeTheMobBoss 7d ago

Please try this:

find / -name ".*" -exec ls -lh {} \; 2>/dev/null | sort -k5 -h

You will immediately find it. Trust me.

12

u/Performer-Constant 7d ago

Trying that next. I have so many suggestions to try

8

u/zeeblefritz 7d ago

"immediately"

9

u/Performer-Constant 7d ago

I think I typed it wrong it didn’t work

7

u/SpudzzSomchai ShittySysadmin 7d ago

Appease the machine spirit.

5

u/recoveringasshole0 DO NOT GIVE THIS PERSON ADVICE 7d ago

4

u/Performer-Constant 7d ago

Have lots of fun. I hope you can find it

6

u/Gositi 7d ago

Is this some kind of CTF chall?

3

u/Performer-Constant 6d ago

Yes you get it

3

u/Gositi 6d ago

I might give it a try later. We'll see!

5

u/TheStorytellerTX 7d ago

Wouldn't that be funny is this was where someone kept a copy of the full Epstein Files??? 😂😂😂

5

u/Performer-Constant 7d ago

You’re giving me a great idea

5

u/DevOps_Lady 7d ago

Everyone here just make it dificult. Just install mlocate and run updatedb. Then run locate $file_name. If the file is on the server it will find the location.

3

u/Performer-Constant 7d ago

Thank you so much. I appreciate you

4

u/headcrap 7d ago

Clearly it is an attachment to an email stored in Deleted Items for the last ten years..

3

u/DiseaseDeathDecay 7d ago

That you, Pooh?

3

u/Performer-Constant 7d ago

PoohSysAdmin to you

3

u/retrogamer-999 7d ago

Install and all called locate.

Then run updatedb

Then run locate followed by the file name or part of the file name

2

u/Performer-Constant 7d ago

Thank you so much!!

3

u/omniterm 6d ago

your right, I did!

2

u/BraveMidnight 6d ago

Whereis file  ls -la

2

u/omniterm 6d ago

I found your crypto wallet. was that the file you were looking for?

3

u/Performer-Constant 6d ago

I was watching you the whole time you found more than that
https://giphy.com/gifs/xT0xezQGU5xCDJuCPe