Author Topic: Error writing PID file  (Read 734 times)

0 Members and 1 Guest are viewing this topic.

Offline unit1

  • Major(1)
  • Posts: 2
Error writing PID file
« on: November 27, 2007, 09:55:22 am »
Hello, this is my problem: when i starting Soldat server on remote server i get error telling "Error writing PID file" but server is starting. When i write to console "ps aux", in "user" column i see that this server is running on user called "1000"!!! Other my servers runs on root user. I wrote some scrtipts and they were runnig without any problems on my Windows and Ubuntu, but they dont work on remote server. I didn't know whats a problem and i think i finally found it. Its this error telling "Error writing PID file" i think. Please help, why i get this error?
« Last Edit: November 27, 2007, 09:58:19 am by unit1 »

Offline mar77a

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1295
  • mad
    • random stuffs
Re: Error writing PID file
« Reply #1 on: November 27, 2007, 09:57:56 am »
Permissions problems maybe?

Offline unit1

  • Major(1)
  • Posts: 2
Re: Error writing PID file
« Reply #2 on: November 27, 2007, 10:03:19 am »
Haha i was changing permissions but i never looked at owner. I change the owner on root and it works fine. I'm sorry i should do this after i wrote this topic.

Offline mar77a

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1295
  • mad
    • random stuffs
Re: Error writing PID file
« Reply #3 on: November 27, 2007, 11:26:24 am »
It's recommended to avoid running applications as root. If anyone found a way to exploit it, then you'd be in the worst possible scenario. You should run the server without problems from a normal user account (as long as the perms are correct).