This file is indexed.

/usr/share/sadms-2.0.15/conf/config-netlink.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
79
80
81
82
83
84
85
86
87
88
89
90
91
#!/bin/bash
# bbou@ac-toulouse.fr
# 2007-05-22 16:24:21 
# conf/config-netlink.sh

### P A R A M S
MYMOUNTPOINT="$1"
MYSHARE="$2"
#echo "mountpoint=${MYMOUNTPOINT}"
#echo "share=${MYSHARE}"

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

### M O D I F I E D   F I L E S ...
skelprofile=.bash_profile

### ... W I T H   A C C E S S
INST_SKEL_MOD=644
INST_UID=0
INST_GID=0
case ${DISTRIBUTION} in
	Redhat|Fedora|Mandriva)
		INST_XINIT_MOD=755
		;;
	Debian|Ubuntu)
		INST_XINIT_MOD=644
		;;
	*)
		INST_XINIT_MOD=644
		;;
esac

### S O U R C E   F I L E S ...
skelprofileext=_bash_profile-ext

### S T A R T

# C O M P U T E   U S E R N A M E   S E P A R A T O R
#separator=`testparm -sv 2> /dev/null | grep 'winbind separator' | awk '{print $4}'`
#echo "separator=${separator}"

# C O M P U T E   I F   S H A R E   I S   U S E R N A M E
sharebasename=${MYSHARE/*\//}
haveperusersubdir=
if [ "${sharebasename}" != "${MYSHARE}" ]; then
	haveperusersubdir=1
fi
echo "sharebasename=${sharebasename}"
echo "haveperusersubdir=${haveperusersubdir}"

# C U S T O M I Z  E   / E T C / S K E L  / . B A S H _ P R O F I L E

[ -e ${SKELDIR}/${skelprofile} ] || touch  ${SKELDIR}/${skelprofile}

echo "+customize ${SKELDIR}/${skelprofile}"

# check if already there
grep -s "# sadms" ${SKELDIR}/${skelprofile} > /dev/null
case $? in
0)
	# abstain
	echo "sadms is already used in ${SKELDIR}/${skelprofile}"
	;;
*)
	# do it
	echo "add link-making to ${SKELDIR}/${skelprofile}"

	# append blob
	cp ${SKELDIR}/${skelprofile} ${TMPDIR}/${skelprofile}
	echo "# sadms.begin" >> ${TMPDIR}/${skelprofile}
	echo "netmountpoint=${MYMOUNTPOINT}" >> ${TMPDIR}/${skelprofile}
	echo "haveperusersubdir=${haveperusersubdir}" >> ${TMPDIR}/${skelprofile}
	cat ./${skelprofileext} >> ${TMPDIR}/${skelprofile}
	echo "# sadms.end" >> ${TMPDIR}/${skelprofile}
	#cat ${TMPDIR}/${skelprofile}
	
	# install
	echo "install ${skelprofile} to ${SKELDIR}"
	${INSTALL} -o ${INST_UID} -g ${INST_GID} -m ${INST_SKEL_MOD} ${TMPDIR}/${skelprofile} ${SKELDIR} > /dev/null
	rm -f ${TMPDIR}/${skelprofile}
	;;
esac

# C U S T O M I Z E   X I N I T R C / X S E S S I O N

echo "+add ${X11DIR}/${XINITRCDIR}/${XINITRCCIFSMOUNT}"
echo "netmountpoint=${MYMOUNTPOINT}" > ${X11DIR}/${XINITRCDIR}/${XINITRCCIFSMOUNT}
echo "haveperusersubdir=${haveperusersubdir}" >> ${X11DIR}/${XINITRCDIR}/${XINITRCCIFSMOUNT}
cat ./${skelprofileext} >> ${X11DIR}/${XINITRCDIR}/${XINITRCCIFSMOUNT}
chmod ${INST_XINIT_MOD} ${X11DIR}/${XINITRCDIR}/${XINITRCCIFSMOUNT}