Lurker News
Hello, I'm building SadServers.com, a SaaS where users can test their Linux troubleshooting skills on real Linux servers in a "Capture the Flag" fashion.

I hope this is useful, to learn more about the project please see https://github.com/fduran/sadservers

Comments (128) 30 threads

Show all comments

Showing thread 16 of 30

yubiox3 replies#
Can't get to the first problem because of HN hug but anyway there are fake ways to "solve" it like renaming the logfile (what they test for solved is provided).
Timja1 reply#
Depends on how the broken program writes to the log.

If it does

    while true; do echo hello >> bad.log; done
Then renaming bad.log will not solve the challenge.
teddyh1 reply#
Replace it with a symlink to /dev/null! Or /dev/full if we feel like it.

(Yes, these are bad solutions, since the instructions explicitly said to stop the process which is writing.)

loa_in_1 reply#
It will still keep writing to an open inode
teddyh#
No, the “while” loop I was commenting would not.
fduran#
There are ways to cheat but not so simple; there's a script that checks for the solution and a hash of the script is checked for modifications.
BossingAround#
This is a self-test, not a certification. The goal is not to defeat the verification goal, but to learn something. So yeah, it's perfectly acceptable that the tests are not bullet-proof.