This file is indexed.

/usr/share/sadms-2.0.15/_install-smb.sh is in sadms 2.0.15.repack-0ubuntu2.

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
#!/bin/bash
# bbou@ac-toulouse.fr
# 2007-05-22 16:43:43 
# _install-smb.sh 

### P A R A M S

MYNARGS=$#
MYREALM="$1"
MYDOMAIN="$2"
MYSERVER="$3"
MYADMIN="$4"
MYUSERS="$5"
MYHOSTALLOW="$6"
MYWINSSERVER="$7"
if [ ${MYNARGS} -lt 7 ]
then
	echo Incorrect number of parameters
	exit 1
fi

### I N C L U D E

. ./_include.sh

### S T A R T

# S T A T U S
[ -d /var/lib/sadms ] || mkdir -p /var/lib/sadms
echo '0' > /var/lib/sadms/smb

# H E A D E R
echo "-------------------------------------------------------------------------------"
echo "S A D M S  `cat version | head -n 1`"
echo "Samba as Active Directory Member Server"
echo "bbou@ac-toulouse.fr"
echo "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"
echo "configure Samba"
echo "-------------------------------------------------------------------------------"
echo "[BEGIN]"

# make sure real is uppercase
realm=`echo "${MYREALM}" | tr '[:lower:]' '[:upper:]'`

# make sure real is uppercase
pushd conf > /dev/null
./config-smbconf.sh "${realm}" "${MYDOMAIN}" "${MYSERVER}" "${MYADMIN}" "${MYUSERS}" "${MYHOSTALLOW}" "${MYWINSSERVER}"
popd > /dev/null
echo "[END]"