TeamViewer root Ubuntu 20.04
It doesn't work under the root, it allows me to use it only for 10 seconds, then it stops working, but when i use another user and login thru gui via it it works well.
Why? What is the difference between translating data via root account and regular user's account? Why would you guys put 10 seconds limitation on it?
Log:
Also i tried to start teamviewer service via the regular account, but still, when i connect to the active root session it stops working after 10 seconds.
su - test
teamviewer daemon start
teamviewer daemon status
systemctl status teamviewerd.service
systemctl status teamviewerd.service
● teamviewerd.service - TeamViewer remote control daemon
Loaded: loaded (/etc/systemd/system/teamviewerd.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2021-09-01 01:36:50; 2s ago
Process: 6957 ExecStart=/opt/teamviewer/tv_bin/teamviewerd -d (code=exited, status=0/SUCCESS)
Main PID: 6959 (teamviewerd)
Tasks: 30 (limit: 17558)
Memory: 7.4M
CGroup: /system.slice/teamviewerd.service
└─6959 /opt/teamviewer/tv_bin/teamviewerd -d
Sep 01 01:36:50 testsystem systemd[1]: Starting TeamViewer remote control daemon...
Sep 01 01:36:50 testsystem systemd[1]: teamviewerd.service: Can't open PID file /run/teamviewerd.pid (yet?) after start: Operation not permitted
Sep 01 01:36:50 testsystem systemd[1]: Started TeamViewer remote control daemon.
root@testsystem:~/Desktop# cat /proc/version
Linux version 5.4.0-81-generic (buildd@lgw01-amd64-052) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #91-Ubuntu SMP Thu Jul 15 19:09:17 UTC 2021
root@testsystem:~/Desktop# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal
root@testsystem:~/Desktop# cat /etc/*release*
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.3 LTS"
NAME="Ubuntu"
VERSION="20.04.3 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.3 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
root@testsystem:~/Desktop# wmctrl -m
Name: Xfwm4
Class: xfwm4
PID: 4251
Window manager's "showing the desktop" mode: N/A
root@testsystem:~/Desktop#
root@testsystem:~/Desktop# teamviewer --version
TeamViewer 15.21.4 (DEB)
root@testsystem:~/Desktop# teamviewer info
TeamViewer 15.21.4 (DEB)
TeamViewer ID: 330*****
teamviewerd status ● teamviewerd.service - TeamViewer remote control daemon
Loaded: loaded (/etc/systemd/system/teamviewerd.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2021-09-01 01:36:50; 15min ago
Process: 6957 ExecStart=/opt/teamviewer/tv_bin/teamviewerd -d (code=exited, status=0/SUCCESS)
Main PID: 6959 (teamviewerd)
Tasks: 31 (limit: 17558)
Memory: 12.4M
CGroup: /system.slice/teamviewerd.service
└─6959 /opt/teamviewer/tv_bin/teamviewerd -d
Sep 01 01:36:50 testsystem systemd[1]: Starting TeamViewer remote control daemon...
Sep 01 01:36:50 testsystem systemd[1]: teamviewerd.service: Can't open PID file /run/teamviewerd.pid (yet?) after start: Operation not permitted
Sep 01 01:36:50 testsystem systemd[1]: Started TeamViewer remote control daemon.