further integration fixes
This commit is contained in:
parent
4d9cd08cfc
commit
49301fac00
11
debian/postinst
vendored
11
debian/postinst
vendored
@ -6,16 +6,19 @@ fi
|
||||
|
||||
|
||||
XRDP="xrdp"
|
||||
CHOWN="/bin/chown"
|
||||
ADDUSER="/usr/sbin/adduser"
|
||||
XRDPLOG="/var/log/xrdp-sesman.log"
|
||||
SESMANLOG="/var/log/xrdp-sesman.log"
|
||||
RSAKEYS="/etc/xrdp/rsakeys.ini"
|
||||
|
||||
[ -d /var/run/xrdp ] || mkdir -p /var/run/xrdp
|
||||
$ADDUSER --system --disabled-password --disabled-login --home /var/run/xrdp \
|
||||
--no-create-home --quiet --group $XRDP
|
||||
|
||||
touch $SESMANLOG
|
||||
$CHOWN $XRDP:$XRDP $SESMANLOG
|
||||
|
||||
touch $SESMANLOG $XRDPLOG
|
||||
chown $XRDP:$XRDP $SESMANLOG
|
||||
chown $XRDP:$XRDP $XRDPLOG
|
||||
chgrp $XRDP $RSAKEYS
|
||||
chmod g+r $RSAKEYS
|
||||
|
||||
#DEBHELPER#
|
||||
|
@ -14,7 +14,9 @@
|
||||
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
||||
DAEMON=/usr/sbin/xrdp
|
||||
PIDDIR=/var/run/xrdp
|
||||
USERID=xrdp
|
||||
#USERID=xrdp
|
||||
# for now X11rdp sessions require root - should be fixed in the future
|
||||
USERID=root
|
||||
RSAKEYS=/etc/xrdp/rsakeys.ini
|
||||
NAME=xrdp
|
||||
DESC=xrdp
|
||||
|
Loading…
Reference in New Issue
Block a user