This file is indexed.

/usr/share/zentyal-users/reinstall is in zentyal-users 2.3.4.

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
#!/bin/bash

echo "WARNING!!"
echo "All your LDAP data and the Zentyal modules depending on it are going to be erased."
echo "Press Control-C now if you are not sure of what you are doing."
read

invoke-rc.d zentyal users stop

INSTALLED_MODULES=`dpkg -l | grep 'zentyal-' | grep ^ii | cut -d' ' -f3| xargs`

UNCONFIGURE_MODULES="asterisk egroupware ftp jabber mail samba squid webmail zarafa captiveportal users"

for mod in $UNCONFIGURE_MODULES
do
    (echo $INSTALLED_MODULES | grep -q $mod) || continue
    echo "Unconfiguring module $mod..."
    sudo /usr/share/zentyal/unconfigure-module $mod
done

sudo apt-get -y --force-yes remove --purge slapd
sudo rm -rf /var/lib/ldap* /etc/ldap*

echo "Removal complete. Reinstalling the removed Zentyal modules..."

sudo apt-get update
sudo apt-get -y --force-yes install $INSTALLED_MODULES || exit 1

echo "Done."
echo "Now you can go to 'Users and Groups -> Mode' and configure it again."