Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Page 1 of 2 12 LastLast
Results 1 to 15 of 26
  1. #1
    Join Date
    May 2010
    Location
    Germany - Bautzen
    Posts
    12

    Solved TSDNS Exception: Permission denied

    Is it possible to start the tsdns without root user?

    When starting with normal user (Debian Lenny, amd64, Build 13991), i get this error:
    Code:
    Exception: Permission denied
    EDIT:
    strace ends with:
    Code:
    read(3, "/dev/simfs / simfs rw,relatime 0"..., 1024) = 225
    statfs("/lib/init/rw", {f_type=0x1021994, f_bsize=4096, f_blocks=1048576, f_bfree=1048576, f_bavail=1048576, f_files=1048576, f_ffree=1048573, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0
    close(3)                                = 0
    munmap(0x7f20d6a1f000, 4096)            = 0
    futex(0x7f20d690b380, FUTEX_WAKE, 2147483647) = 0
    open("/lib/init/rw/tsdns_update", O_RDWR|O_CREAT|O_NOFOLLOW, 0777) = -1 EACCES (Permission denied)
    write(2, "Exception: ", 11Exception: )             = 11
    write(2, "Permission denied", 17Permission denied)       = 17
    write(2, "\n", 1
    )                       = 1
    exit_group(2)                           = ?
    Process 20400 detached
    Last edited by geeko; March 20th, 2011 at 01:50 PM.

  2. #2
    Join Date
    May 2007
    Location
    Eastern NC
    Posts
    1,801
    I run tsdns without root access, if you extracted the tar.gz file with the root account you may need to use root to adjust the permissions on the files. I think on my the permissions are 755

  3. #3
    Join Date
    May 2010
    Location
    Germany - Bautzen
    Posts
    12
    The problem is tsdns wants to create the file '/lib/init/rw/tsdns_update' but on Debian Linux normal users have no write permissions to '/lib/init/rw/'.

  4. #4
    Join Date
    January 2011
    Location
    US
    Posts
    260
    How about
    touch /lib/init/rw/tsdns_update
    Then chown it to a normal user?

  5. #5
    Join Date
    May 2010
    Location
    Germany - Bautzen
    Posts
    12
    Quote Originally Posted by copper View Post
    How about
    touch /lib/init/rw/tsdns_update
    Then chown it to a normal user?
    yes, i tried this already
    it works, but there should be a better way in the next version

  6. #6
    Join Date
    June 2008
    Posts
    18,513
    Some posts have been moved out of our Announcements thread.
    When sending me private messages: Please make sure to include reference link to your forum thread or post.

    TeamSpeak FAQ || What should i report, when i open a client thread?

  7. #7
    Join Date
    July 2008
    Location
    Germany
    Posts
    136
    Quote Originally Posted by copper View Post
    How about
    touch /lib/init/rw/tsdns_update
    Then chown it to a normal user?
    I've tried this too, but it still says: Exception: Permission denied
    Any other solutions???

  8. #8
    Join Date
    July 2008
    Location
    Germany
    Posts
    136
    *push*
    My tsdns is still running as root. :/
    What does the tsdns do, where does it need special rights and why it can't run just out of the box?

  9. #9
    Join Date
    January 2010
    Location
    Germany
    Posts
    2,029
    Problem seems to be that said File is beeing deleted on reboot/shutdown thus not beeing available when TSDNS wants to start (and it cannot create it without root).

    For me tsdns runs perfectly fine as a regular user as long as I first create said File with root access until the next reboot where the file will be missing again.

    According to some note somewhere (and taking for granted that my memory is correct) that File is needed for the --update Method to work. (ie. so you can just edit the tsdns_settings.ini while tsdns is running and then run tsdns again with the update parameter so it will update the lookups in the already running process then exit)

  10. #10
    Join Date
    January 2009
    Location
    Graz
    Posts
    19
    Quote Originally Posted by Riff Raff View Post
    *push*
    My tsdns is still running as root. :/
    What does the tsdns do, where does it need special rights and why it can't run just out of the box?
    i ran into the same problem, this is how i was able to fix it:

    i found out that the actual program created the file: /dev/shm/tsdns_update

    because i started the server for the very first time as root, this file was owned by root.
    after removing the file, i was able to start the server as "normal" user without problems.

    edit: this will only work if you have already mounted tmpfs to /dev/shm as mentioned in the last chapter of the USAGE file.

  11. #11
    Join Date
    February 2010
    Location
    Scotland
    Posts
    32

    Solved TSDNS Server start issue.

    Hi There,

    I wonder if someone would be so kind to help shed some light on this problem I've been having.. I have reviewed several, if not all of the previously posted problems for the tsdns service but have found NO working solution to my problem.

    The problem I am having is when I try to start the TSDNS Service, I get "Exception: Permission Denied" errors..

    Here's what's happening:
    Code:
    [email protected]*.net [~/teamspeak3-server_linux-amd64/tsdns]# ./tsdnsserver_linux_amd64
    Exception: Permission denied
    I have tried florian_fr40's startscript too and editing file permissions, directory permissions etc... I'm actually at the end of my tether and can't think of anything else that could be causing this problem.. Could someone please advise?

    Current Permission set:
    Code:
    [email protected]*.net [~/teamspeak3-server_linux-amd64/tsdns]# ls -l
    total 384
    drwxrwsr-x 2 ts3 ts3   4096 Jun  9 20:49 ./
    drwxr-xr-x 8 ts3 ts3   4096 Jun  9 20:39 ../
    -rw-r--r-- 1 ts3 ts3   2722 May 23 04:10 README
    -rw-r--r-- 1 ts3 ts3   2561 May 23 04:10 USAGE
    -rw-r--r-- 1 ts3 ts3   1560 Jun  9 02:44 tsdns_settings.ini
    -rwxr--r-- 1 ts3 ts3   2918 Jun  9 20:31 tsdns_startscript.sh*
    -rwxr-xr-x 1 ts3 ts3 360798 May 23 04:10 tsdnsserver_linux_amd64*
    Current File Info:
    Code:
    [email protected]*.net [~/teamspeak3-server_linux-amd64/tsdns]# file tsdnsserver_linux_amd64
    tsdnsserver_linux_amd64: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux6.8, dynamically linked (uses shared libs), for GNU/Linux 2.6.8, not stripped

    Kind Regards,

    Chris

  12. #12
    Join Date
    May 2010
    Posts
    6,310
    Hello

    This is not a start problem. Depend of you linux distrib, but the tsnds_update file can't be write. It seems the tsdns was start with another user.

    The TSDNS server create this file there
    Code:
     /lib/init/rw/tsdns_update
    - Delete this file and try to start your TSDNS server with the ts3 linux user
    - Check if the linux permission of the rw folder is 755.

  13. #13
    Join Date
    February 2010
    Location
    Scotland
    Posts
    32
    Quote Originally Posted by florian_fr40 View Post
    Hello

    This is not a start problem. Depend of you linux distrib, but the tsnds_update file can't be write. It seems the tsdns was start with another user.

    The TSDNS server create this file there
    Code:
     /lib/init/rw/tsdns_update
    - Delete this file and try to start your TSDNS server with the ts3 linux user
    - Check if the linux permission of the rw folder is 755.
    There actually is no /lib/init/rw/ directory on my CentOS 5.5 system..

    What would you suggest?
    Last edited by chrislog; June 10th, 2011 at 02:30 PM.

  14. #14
    Join Date
    May 2010
    Posts
    6,310
    Effectively that's depend of your linux distrib.

    Maybe just do a search for "tsdns_update" file ...

    (it works as root user ?)
    Other thread : http://forum.teamspeak.com/showthrea...does-not-start

  15. #15
    Join Date
    February 2010
    Location
    Scotland
    Posts
    32
    Quote Originally Posted by florian_fr40 View Post
    Effectively that's depend of your linux distrib.

    Maybe just do a search for "tsdns_update" file ...

    (it works as root user ?)
    Other thread : http://forum.teamspeak.com/showthrea...does-not-start
    I ran a search for the file and this was the result:
    Code:
    [email protected] [~]# find / -name tsdns_update
    /dev/shm/tsdns_update
    I have edited permissions etc for it, but still I receive Permission Denied.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. permission denied
    By singularity in forum Linux / FreeBSD
    Replies: 6
    Last Post: June 24th, 2012, 04:11 PM
  2. ts3server.pid: Permission denied
    By Stardoc in forum Server Support
    Replies: 1
    Last Post: May 29th, 2010, 01:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •