Public bug reported:

When xrdp (and their dependencies) are installed and running, the log
permissions are:

root@host01~# ls -l  /var/log/xrdp*
-rw-r----- 1 xrdp adm 33138 jul 20 09:45 /var/log/xrdp.log
-rw-r----- 1 root adm 18608 jul 20 09:45 /var/log/xrdp-sesman.log

But if logs are removed (backup, logrotate, etc.), when restart, xrdp
creates logs with wrong permissions:

root@host01~# ls -l  /var/log/xrdp*
-rw------- 1 root root 587 jul 20 11:46 /var/log/xrdp-sesman.log

And xrdp-sesman crashes. When permissions are set, xrdp runs normally.


Steps to reproduce it:

* install: sudo apt install -y xrdp
* start: sudo systemctl start xrdp
* test ok: sudo xrdp localhost
* stop: sudo systemctl stop xrdp
* removelogs: sudo rm -f /var/log/xrdp*
* start: sudo systemctl start xrdp
* test fail: xrdp localhost

Logs attached.

** Affects: xubuntu-meta (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: xrdp

** Attachment added: "All logs in one file"
   https://bugs.launchpad.net/bugs/1937024/+attachment/5512393/+files/xrdp.log

** Description changed:

  When xrdp (and their dependencies) are installed and running, the log
  permissions are:
  
  root@host01~# ls -l  /var/log/xrdp*
  -rw-r----- 1 xrdp adm 33138 jul 20 09:45 /var/log/xrdp.log
  -rw-r----- 1 root adm 18608 jul 20 09:45 /var/log/xrdp-sesman.log
  
- But if logs are removed (backup, logrotate, etc.),
+ But if logs are removed (backup, logrotate, etc.), when restart, xrdp
+ creates logs with wrong permissions:
+ 
+ 
+ root@host01~# ls -l  /var/log/xrdp*
+ -rw------- 1 root root 587 jul 20 11:46 /var/log/xrdp-sesman.log
  
  
  Steps to reproduce it:
  
  * install: sudo apt install -y xrdp
  * start: sudo systemctl start xrdp
  * text ok: sudo xrdp localhost
  * stop: sudo systemctl stop xrdp
  * removelogs: sudo rm -f /var/log/xrdp*
  * start: sudo systemctl start xrdp
  * test: xrdp localhost
  
- 
  Logs attached.

** Description changed:

  When xrdp (and their dependencies) are installed and running, the log
  permissions are:
  
  root@host01~# ls -l  /var/log/xrdp*
  -rw-r----- 1 xrdp adm 33138 jul 20 09:45 /var/log/xrdp.log
  -rw-r----- 1 root adm 18608 jul 20 09:45 /var/log/xrdp-sesman.log
  
  But if logs are removed (backup, logrotate, etc.), when restart, xrdp
  creates logs with wrong permissions:
  
- 
  root@host01~# ls -l  /var/log/xrdp*
  -rw------- 1 root root 587 jul 20 11:46 /var/log/xrdp-sesman.log
+ 
+ And xrdp-sesman crashes. When permissions are set, xrdp runs normally.
  
  
  Steps to reproduce it:
  
  * install: sudo apt install -y xrdp
  * start: sudo systemctl start xrdp
- * text ok: sudo xrdp localhost
+ * test ok: sudo xrdp localhost
  * stop: sudo systemctl stop xrdp
  * removelogs: sudo rm -f /var/log/xrdp*
  * start: sudo systemctl start xrdp
- * test: xrdp localhost
+ * test fail: xrdp localhost
  
  Logs attached.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1937024

Title:
  xrdp log  created with wrong permissions

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xubuntu-meta/+bug/1937024/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to