Monday, August 15, 2011

How To Run Teamviewer Under Root User | exec: /opt/teamviewer/teamviewer//bin/wrapper:

while run team viewer From the root User I got the following error message
Team Viewer must not be executed as root! or team viewer will not open.
Actual team viewer shell script they write the shell script if we execute team viewer from the root user [ root user id=0 ] display the error message or it will not open. shell script located under /usr/bin/teamviewer
[root@rhel5 bin]# cat teamviewer

#!/bin/sh
userid=$(id -u)
tv_ver="6"

if [ $userid = 0 ] # root user id is 0
then
echo TeamViewer must not be executed as root!
exit 1
fi
Here from the other resource they suggest to disable the line like adding Hash symbol # ,make the command line . From
Line: userid=$(id -u) to
Line: fi< But after change change while run the team viewer You will face the following error message. [root@localhost bin]# teamviewer /usr/bin/teamviewer: line 13: /opt/teamviewer/teamviewer//bin/wrapper: No such file or directory
/usr/bin/teamviewer: line 13: exec: /opt/teamviewer/teamviewer//bin/wrapper: cannot execute: No such file or directory
SOLUTION
It is better I will suggest just edit the uid is equal to 12 instead of 0 then try it you will get the team viewer even though if you are root user.
[user id 12 is the system user so it will not affect you any more].
/usr/bin/teamviewer: line 13: /opt/teamviewer/teamviewer//bin/wrapper: No such file or directory
/usr/bin/teamviewer: line 13: exec: /opt/teamviewer/teamviewer//bin/wrapper: cannot execute: No such file or directory

0 comments:

Flag counter

free counters