1 (edited by powachill4 2012-02-21 22:47:55)

Topic: I am too stupid to properly unpack teeworlds and killed my root server

** some swearing removed **
downloaded the current source, unzippd it and wanted to move it to the parent folder.
i moved it to / and what happens?
I type "ls".
ls is not a directory.
ALRIGHT! disconnected -> logging in as root
SERVER CLOSED CONNECTION
** more swearing removed **

#edit
** more swearing **
http://alterwar.de/ look there, there WAS my website.. FUCKIN DAMND SHIT HELL FUUUUUUUUU

** really? the swearing gets boring now **
THE SYSTEM DID NOT AUTOMATIC BACKUPS LMFAO.
damn and i just set it up yesterday NAARF

** m!nus was here tongue **

2

Re: I am too stupid to properly unpack teeworlds and killed my root server

Moving the source folder to / will not crash your server...
Also when typing ls, did you accidentally type cd ls?
Try rebooting the machine...

3 (edited by TeePhoenix 2012-06-10 16:50:48)

Re: I am too stupid to properly unpack teeworlds and killed my root server

Deleted.

The face of terrorism is called United States of America!

4

Re: I am too stupid to properly unpack teeworlds and killed my root server

powachill4 wrote:

Fucking damned shit sorry i just crashed my root FFFUUUUUU!!!!!!!!!!!
downloaded the current source, unzippd it and wanted to move it to the parent folder.

Dear powachill4,
Please chill and use your power 4 something else.


powachill4 wrote:

fuck

I advice you to reconsider your linguistic moves in the future.


powachill4 wrote:

, i moved it to / and what happens?
I type "ls".
ls is not a directory.
ALRIGHT! disconnected -> logging in as root
SERVER CLOSED CONNECTION

You must have done something more to accomplish this. Simply extracting the Teeworlds source usually doesn't 'crash' your server.


powachill4 wrote:

DAAAAMNED SHIT WHAT TO DOO ARASHLDKJGKASDA SNARRF FUCKING BOOTLEG LINUX SHIT!

Bootleg Linux?


powachill4 wrote:

#edit
FCKIN SHIT
http://alterwar.de/ look there, there WAS my website.. FUCKIN DAMND SHIT HELL FUUUUUUUUU

No local copy?


powachill4 wrote:

FUCK THE SYSTEM DID NOT AUTOMATIC BACKUPS LMFAO.
damn and i just set it up yesterday NAARF

Irrelevant, insignificant, unrelated, inapplicable, inapposite and not relevant.

---

You might want to consider buying a http://www.thinkgeek.com/tshirts-apparel/59fe/.

---

This forum is not primarily intended to be used for general support, but Teeworlds support. However, if you give people the information they ask you for (within sane limits) and cooperate when they try to help, without going umadbro, this topic could stay.

Are you absolutely sure you didn't do anything else? Does your SSH client log everything you type?

5 (edited by m!nus 2012-02-22 02:25:30)

Re: I am too stupid to properly unpack teeworlds and killed my root server

Which reminds me... I haven't set up an automated backup for the new teeworlds server hmm

Edit: done smile
I use dirvish btw, you should try too, does incremental backups with rsync.

6

Re: I am too stupid to properly unpack teeworlds and killed my root server

narf.. just reinstalled the root, setting up everythign (again -_-).
and.. yes i simply did this:

cd /home
mkdir teeworlds
cd teeworlds
wget <teeworldssource>
tar xfvz <teeworldssource>
ls
mv <teeworldssource>/* /


at mv was the fail.
wanted to do ../ to move it into parent directory (../ is correct, eh? dont know, now i use the FULL PATH everytime LOL!).

greez from hell big_smile

7

Re: I am too stupid to properly unpack teeworlds and killed my root server

Yes ../ is right to move it one directory up.
./ is the current directory.
/ is the system directory with all of its system folders.

8

Re: I am too stupid to properly unpack teeworlds and killed my root server

ive got a bad karma.. hmm

9

Re: I am too stupid to properly unpack teeworlds and killed my root server

powachill4 wrote:

narf.. just reinstalled the root, setting up everythign (again -_-).
and.. yes i simply did this:

cd /home
mkdir teeworlds
cd teeworlds
wget <teeworldssource>
tar xfvz <teeworldssource>
ls
mv <teeworldssource>/* /


at mv was the fail.
wanted to do ../ to move it into parent directory (../ is correct, eh? dont know, now i use the FULL PATH everytime LOL!).

greez from hell big_smile

Seriously, that's what you get for doing that as root. Create an account named "teeworlds" or "games" and install teworlds there, but NOT AS ROOT.

10 (edited by TeePhoenix 2012-06-10 16:49:26)

Re: I am too stupid to properly unpack teeworlds and killed my root server

Deleted.

The face of terrorism is called United States of America!

11

Re: I am too stupid to properly unpack teeworlds and killed my root server

Because it lowers the chance of trashing the server or doing other bad things.

12 (edited by TeePhoenix 2012-06-10 16:49:21)

Re: I am too stupid to properly unpack teeworlds and killed my root server

Deleted.

The face of terrorism is called United States of America!

13 (edited by ghost 2012-02-22 17:49:45)

Re: I am too stupid to properly unpack teeworlds and killed my root server

It's a general rule on linux to avoid doing anything as root. Doing it as a normal user is always safer, as you don't have the rights to do anything dangerous, which might hurt the system. Also it's more safe in terms of security to the outside: If there is an exploit for a server application (e.g. the teeworlds server) and a hacker uses that exploit, he might be able to execute any code on your server, but just with the rights of the user that started the server. That means, if you start the server application as root, he can do whatever he wants on your server, if you start it with another user, his options are way more limited, so your system is a lot more secure.

14

Re: I am too stupid to properly unpack teeworlds and killed my root server

hey m!nus... not to be off topic, but you haven't completely removed the swearing.

15 (edited by Mo2 2012-03-10 14:17:11)

Re: I am too stupid to properly unpack teeworlds and killed my root server

powachill4 wrote:

cd /home
mkdir teeworlds
cd teeworlds
wget <teeworldssource>
tar xfvz <teeworldssource>
ls
mv <teeworldssource>/* /

If you used really twsource/* then this would just spam your / directory with content of the TW folder (it would not move the folder but content below, which sucks but is more a cosmetic problem then a functional). That should not crash your machine but is similar ugly as extracting content of tw-source without parent-folder (means many standalone files) directly into C: on windows - On linux this would only be a problem if TW contains some /lib or /bin folder and replaces for example libc (which is not the case). So I'm pretty sure you did something different.  Maybe "mv / teeworldssource/* /" or something like that? Because it sounds for me that you've removed your libc to somewhere else where your OS did not find it in the path anymore, which effects your hole system (even ssh and so on) immediately and should create some failure as you described here.


Greetings,
Mo(2)