This file is indexed.

/usr/sbin/dtc-xen_finish_install is in dtc-xen 0.5.17-1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/sh

set -e

echo "DISCLAIMER!"
echo "This script is a helper to remove AllowTcpForwarding option from your"
echo "/etc/ssh/sshd_config file, and allow the use of ssh for your users to"
echo "reach /usr/bin/dtc-xen_userconsole, which will let them connect to the"
echo "tty1 of their virtual machines."
echo "This script isn't fail-proof, it is just a helper to setup things faster"
echo "and it works if your ssh daemon has been freshly installed. If you aren't"
echo "sure, you should inspect /etc/ssh/sshd_config and /etc/sudoers after you"
echo "ran this script to make sure it fits your environment."
echo ""

# Modify the sudoers file
if grep xenusers /etc/sudoers 2>&1 >/dev/null ; then
	echo "Sudoers already modified"
else
	echo "Adding avaibility of dtc-xen_userconsole to xenusers in /etc/sudoers"
	echo "%xenusers       ALL= NOPASSWD: /usr/sbin/xm console xen*" >>/etc/sudoers
fi

if grep "AllowTcpForwarding no" /etc/ssh/sshd_config ; then
	echo "Port forwarding seems to be disabled already!"
else
	if grep "AllowTcpForwarding" /etc/ssh/sshd_config ; then
		echo "There is a AllowTcpForwarding but not to no: please disable port forwarding NOW!"
	else
		echo "AllowTcpForwarding no" >>/etc/ssh/sshd_config
		echo "Disabling ssh port forwarding for security reasons"
		if [ -x /usr/sbin/invoke-rc.d -a /etc/init.d/ssh ] ; then
			echo "Restarting ssh daemon"
			invoke-rc.d ssh restart
		else
			echo "Please restart the ssh daemon or do a \"killall -HUP sshd\" right after this package is setup!!!"
		fi
	fi
fi

if grep -q "/usr/bin/dtc-xen_userconsole" /etc/shells ; then
	echo "/etc/shells already knows /usr/bin/dtc-xen_userconsole"
else
	echo "Adding /bin/dtc-xen_userconsole to /etc/shells"
	echo "/usr/bin/dtc-xen_userconsole" >>/etc/shells
fi

echo ""
echo "If you wish to, there are some dtc-xen-os VM images that are available to
setup automatically some operating systems. These are available in a 3rd
party repository as Debian packages. Here are some of the mirrors available:
Main mirror:   deb ftp://ftp.gplhost.com/debian stable main
Europe mirror: deb ftp://ftp.gplhost.fr/debian stable main
Asia mirror:   deb ftp://ftp.gplhost.sg/debian stable main
Note that these are *not* officially backed by Debian support, and they are
maintained on a best effort basis (eg: some might well be outdated and would
need security upgrades just right after the install)."
echo ""

exit 0