Thursday, December 29, 2011

Running Teamviewer 6 as root on linux

While attempting to run teamviewer 6 on BT5, as usual, I got the error:

Error: TeamViewer must not be executed as root!

so the solution is simple

root@bt:~# cd /opt/teamviewer/teamviewer/6/bin/
root@bt:/opt/teamviewer/teamviewer/6/bin# gedit wrapper

then edit the file as

and instead of “die” just replace that with “echo”. This way it would run and every time remind you of security issues as well.


function validate_user()
{
local userid=$(id -u)

if [ $userid = 0 ] ; then
echo “TeamViewer must not be executed as root!”
fi
}

or simply just uncomment the whole if – fi structure.

Cheers!

Ujjwal Soni

No comments: