PDA

View Full Version : Root vs User


xavierk
17-08-2004, 18:24
When I launch TSS as Root, everything boots normally. If I try to run TSS as a user I get the following in the logs. Does anyone has an idea of what permisions needs to be granted or what the case maybe. Someone suggested to test this line "/bin/echo Hello World" and that works. Any other suggestions? I would hate to keep running it as root.

Thank you,

Xavier

---------------------------------------------------------------
-------------- log started at 17-08-04 12:04 -------------
---------------------------------------------------------------
17-08-04 12:04:14,ALL,Info,server, Server init initialized
17-08-04 12:04:14,ALL,Info,server, Server version: 2.0.20.1 Linux
17-08-04 12:04:15,ALL,Info,server, Starting VirtualServer id:2 with port:8768
17-08-04 12:04:17,ALL,Info,server, Starting VirtualServer id:3 with port:8769
17-08-04 12:04:18,ALL,Info,server, Starting VirtualServer id:4 with port:8767
17-08-04 12:04:19,ALL,Info,server, Starting VirtualServer id:5 with port:8770
17-08-04 12:04:20,ERROR,All,TCPQUERY, TCPQuery startup failed with port 51234, Exception: Thread creation error: Resource temporarily unavailable
17-08-04 12:04:20,ERROR,Info,server, EThread: Thread creation error: Resource temporarily unavailable

xavierk
17-08-2004, 19:44
Doing research I think it has to do with the ULIMIT of the user. I am having a hard time trying to understand how to adjust the soft/hard limit so i can up the max user processes, as I think that might be the issue. Can anyone help?

Xavier

-bash-2.05b$ ulimit -a
core file size (blocks, -c) 200000
data seg size (kbytes, -d) 200000
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) 4
max memory size (kbytes, -m) 200000
open files (-n) 100
pipe size (512 bytes, -p) 8
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 20
virtual memory (kbytes, -v) 200000

xxdjpinoyballaxx
17-08-2004, 20:03
why isnt it good to run the server as root?

xavierk
18-08-2004, 10:23
It is a good policy to avoid using root if at all possible. I am sure Teamspeak has security flaws and why expose the root to anything unnecessarily. We've had our fair share of hackers and have learned our lesson.

Xavier