Некорректная работа xrdp

Автор dsdsda, 29 сентября 2019, 14:18:10

« назад - далее »

0 Пользователи и 1 гость просматривают эту тему.

dsdsda

Кали линукс сделан на дебиан, наверно можно сюда написать. Решил установить xrdp, ввёл xrdp. Получил это:  root@KaliBackDoor:~# xrdp
[20190929-18:11:40] [DEBUG] Testing if xrdp can listen on 0.0.0.0 port 3389.
[20190929-18:11:40] [DEBUG] Closed socket 7 (AF_INET6 :: port 3389)
root@KaliBackDoor:~# xrdp
It looks like xrdp is already running.
If not, delete /var/run/xrdp/xrdp.pid and try again.
root@KaliBackDoor:~# xrdp
It looks like xrdp is already running.
If not, delete /var/run/xrdp/xrdp.pid and try again.
root@KaliBackDoor:~# xrdp
It looks like xrdp is already running.
If not, delete /var/run/xrdp/xrdp.pid and try again.
root@KaliBackDoor:~# xrdp
It looks like xrdp is already running.
If not, delete /var/run/xrdp/xrdp.pid and try again.
root@KaliBackDoor:~# service xrdp stop
root@KaliBackDoor:~# xrdp
It looks like xrdp is already running.
If not, delete /var/run/xrdp/xrdp.pid and try again.
root@KaliBackDoor:~# service xrdp start
Job for xrdp.service failed because the service did not take the steps required by its unit configuration.
See "systemctl status xrdp.service" and "journalctl -xe" for details.
root@KaliBackDoor:~# systemctl status xrdp
● xrdp.service - xrdp daemon
   Loaded: loaded (/lib/systemd/system/xrdp.service; disabled; vendor preset: d>
   Active: failed (Result: protocol) since Sun 2019-09-29 18:12:05 +07; 6s ago
     Docs: man:xrdp(8)
           man:xrdp.ini(5)
  Process: 2138 ExecStartPre=/bin/sh /usr/share/xrdp/socksetup (code=exited, st>
  Process: 2146 ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS (code=exited, status=0/S>

сен 29 18:12:05 KaliBackDoor systemd[1]: Starting xrdp daemon...
сен 29 18:12:05 KaliBackDoor systemd[1]: xrdp.service: New main PID 2075 does n>
сен 29 18:12:05 KaliBackDoor systemd[1]: xrdp.service: New main PID 2075 does n>
сен 29 18:12:05 KaliBackDoor systemd[1]: xrdp.service: Failed with result 'prot>
сен 29 18:12:05 KaliBackDoor systemd[1]: Failed to start xrdp daemon.
lines 1-13/13 (END)...skipping...
● xrdp.service - xrdp daemon
   Loaded: loaded (/lib/systemd/system/xrdp.service; disabled; vendor preset: disabled)
   Active: failed (Result: protocol) since Sun 2019-09-29 18:12:05 +07; 6s ago
     Docs: man:xrdp(8)
           man:xrdp.ini(5)
  Process: 2138 ExecStartPre=/bin/sh /usr/share/xrdp/socksetup (code=exited, status=0/SUCCESS)
  Process: 2146 ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS (code=exited, status=0/SUCCESS)

сен 29 18:12:05 KaliBackDoor systemd[1]: Starting xrdp daemon...
сен 29 18:12:05 KaliBackDoor systemd[1]: xrdp.service: New main PID 2075 does not belong to service, and PID file is not owned by root. Refusing.
сен 29 18:12:05 KaliBackDoor systemd[1]: xrdp.service: New main PID 2075 does not belong to service, and PID file is not owned by root. Refusing.
сен 29 18:12:05 KaliBackDoor systemd[1]: xrdp.service: Failed with result 'protocol'.
сен 29 18:12:05 KaliBackDoor systemd[1]: Failed to start xrdp daemon.

● xrdp.service - xrdp daemon
   Loaded: loaded (/lib/systemd/system/xrdp.service; disabled; vendor preset: d>
   Active: failed (Result: protocol) since Sun 2019-09-29 18:12:05 +07; 6s ago
     Docs: man:xrdp(8)
           man:xrdp.ini(5)
  Process: 2138 ExecStartPre=/bin/sh /usr/share/xrdp/socksetup (code=exited, st>
  Process: 2146 ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS (code=exited, status=0/S>

сен 29 18:12:05 KaliBackDoor systemd[1]: Starting xrdp daemon...
сен 29 18:12:05 KaliBackDoor systemd[1]: xrdp.service: New main PID 2075 does n>
сен 29 18:12:05 KaliBackDoor systemd[1]: xrdp.service: New main PID 2075 does n>
сен 29 18:12:05 KaliBackDoor systemd[1]: xrdp.service: Failed with result 'prot>
сен 29 18:12:05 KaliBackDoor systemd[1]: Failed to start xrdp daemon.


отредактировал файл /etc/xrdp/startwm.sh
Содержание: #!/bin/sh
if [ -r /etc/default/locale ]; then
. /etc/default/locale
export LANG LANGUAGE
fi
startxfce4


Неработает.

qupl

А зачем Вы его запускали несколько раз подряд вручную? Может сначала нужно было проверить запущен ли сервис?

dsdsda

По тупости, не подумал сначала))) Как быть то?)

qupl

Перезагрузиться не помогает? По идее, сейчас все сервисы должны стартовать через systemd юниты (про kali не в курсе).