This file is indexed.

/usr/share/sadms-2.0.15/conf/unconfig-pam_samba.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/bin/bash
# bbou@ac-toulouse.fr
# 2007-05-22 16:27:18 
# conf/unconfig-pam_samba.sh

### I N C L U D E
. ./_include.sh

### P A R A M S
if [ "$1" == "-f" ];then
	MYDIR="$2"
	shift
	shift
else
	MYDIR="${PAMDIR}"
fi
#echo "dir=${MYDIR}"

### M O D I F I E D   F I L E S ...
# those specified by ${MYDIR}/samba
pamsamba=/etc/pam.d/samba

### ... W I T H   A C C E S S
INST_UID=root
INST_GID=root
INST_PAM_MOD=644

### F O R M A T S
case ${DISTRIBUTION} in
	Redhat|Fedora)
		libpath="\/lib\/security\/\$ISA\/"
		sysauthmatcher="^%SERVICE%[[:space:]]*required[[:space:]]*pam_stack.so[[:space:]]*service=system-auth.*$"; \
		;;
	Mandriva|Debian|Ubuntu|Suse)
		libpath=
		sysauthmatcher="^@include[[:space:]]*common-%SERVICE%.*$"; \
		;;
	*)
		echo "Unsupported distribution" >&2
		exit 1
		;;
esac

### S T A R T

function pam_toggle()
{
awk ' \
	{ \
		if (match($0,"^# sadms remove begin")) \
			remove=1; \
		if (match($0,"^# sadms remove end")) \
			remove=0; \
		if (match($0,"^# sadms add begin")) \
			add=1; \
		if (match($0,"^# sadms add end")) \
			add=0; \
		if (match($0,"^# sadms")) \
		{ \
		} \
		else if (add==0 && remove==0) \
			print $0; \
		else if(remove) \
			print substr($0,2); \
	} \
' "restore=${restore}" -
}

# remove sadms additions
cat ${pamsamba} | pam_toggle > ${TMPDIR}/samba
#cat ${TMPDIR}/samba

# install
echo "install modified samba to ${MYDIR}"
${INSTALL} -o ${INST_UID} -g ${INST_GID} -m ${INST_PAM_MOD} ${TMPDIR}/samba ${MYDIR} > /dev/null

# cleanup temporary
rm -f ${TMPDIR}/samba