Public bug reported:

When installing the package xrdp on a system with an existing xrdp user
through directory authentication (VAS to Active Directory), the postinst
script fails because the user already exists.

Setting up xrdp (0.5.0-2) ...
adduser: The user `xrdp' already exists. Exiting.
dpkg: error processing xrdp (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 xrdp
E: Sub-process /usr/bin/dpkg returned an error code (1)

getent shows the user as coming from VAS,

mwaltz@midna:/tmp $ getent passwd xrdp
xrdp:VAS:84118:200:xr dp:/usr2/xrdp:/bin/denylogin

Updating the postinst script to check if the user exists first and do
nothing, will work around this issue and still create the user on
systems when the user doesn't exist. See attached proposed patch.

System Information:

lsb_release -rd
Description:    Ubuntu 12.04.3 LTS
Release:        12.04

apt-cache policy xrdp
xrdp:
  Installed: 0.5.0-2
  Candidate: 0.5.0-2
  Version table:
 *** 0.5.0-2 0
        500 http://mirrors.kernel.org/ubuntu/ precise/universe amd64 Packages
        100 /var/lib/dpkg/status

** Affects: xrdp (Ubuntu)
     Importance: Undecided
         Status: New

** Patch added: "xrdp.postinst.patch"
   
https://bugs.launchpad.net/bugs/1267207/+attachment/3943804/+files/xrdp.postinst.patch

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

Title:
  Install fails with: The user `xrdp' already exists.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xrdp/+bug/1267207/+subscriptions

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

Reply via email to