Results 1 to 2 of 2
12-06-2008, 15:26 #1-= TeamSpeak User =-
- Join Date
- Jan 2007
Permissions Problems Using sudo to Run Server
I'm having permissions problems with my TS server. I created a "teamspeak" user, then changed the ownership on all the ts folder recursively to that usr, "chown -R teamspeak:teamspeak tss*". When I ran the start script, "sudo -u teamspeak ./teamspeak2-server_startscript start" I got a permission denied error, the script couldn't create the ini file.
So I ran the script as root, and the server started no problem, and I set up the server. I then shut down the server, and made sure that all the files had the right owner, and changed the permissions recursively to 640, and for the script and executable to 755. Now when I try to start the server using "sudo -u teamspeak ./teamspeak2-server_startscript start" I get another permission denied error:
sudo: unable to execute ./teamspeak2-server_startscript: Permission denied
I am still able to start the server as root, but as I said, I don't want to do this. I want to run the server as the "teamspeak" user. I recently reinstalled my operating system after swapping some hard drives around, and I had the TS server running through sudo as the teamspeak user before with no problem. Any ideas on what could be going on?
The teamspeak user was created with the home directory of the root TS directory, the shell is "/bin/false", and I disabled the password and login for the user. I'm also having some strange permissions problems with logcheck and some logs and I'm wondering if the two problems could be related? The partition is mounted using the "nodev" flag.
I'm using Debian Etch, and I elected to install the basic system without any packages for specific configurations. I'm wondering if I am missing some necessary package that could be screwing around with permissions? When I installed previously I installed the webserver configuration.
What makes this even odder is I am running Half-Life and Source servers on the same box, using the same permissions configuration, with no problems whatsoever (ie. a user for the game servers and using sudo to run the servers, with fairly strict permissions). I also tried in exasperation setting the permissions recursively to 777, and had the same problem.
Any suggestions would be gratefully received.
12-06-2008, 16:21 #2-= TeamSpeak User =-
- Join Date
- Jan 2007
Finally got it. Read the noobs' guide. Created a user I could log in with. Deleted the files, logged in as that user, reinstalled the server, started it, and everything works. I can now use sudo to start the server. Guess my mistake was not realizing I was a noob...
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By oehlie in forum [TeamSpeak 2] Server SupportReplies: 12Last Post: 19-12-2007, 22:39
By Xeroed in forum [TeamSpeak 2] Server SupportReplies: 10Last Post: 27-09-2006, 04:08
By lars-andre-petersen in forum [TeamSpeak 2] Server SupportReplies: 70Last Post: 26-09-2005, 11:54
By Bones_taw in forum [TeamSpeak 2] Server SupportReplies: 4Last Post: 16-12-2003, 05:23
By ghboom in forum [TeamSpeak 2] Server SupportReplies: 0Last Post: 30-05-2003, 06:05