This file is indexed.

/usr/lib/2013.com.canonical.certification:checkbox/bin/samba_test is in plainbox-provider-checkbox 0.4-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
#!/bin/bash
#
#  Confirm Samba service is running
#  Requires: samba winbind
#

#Verify Samba processes are running
smbd=`pgrep smbd`
if [ -z "$smbd" ]; then
  echo "FAIL: smbd is not running."
  exit 1
fi

nmbd=`pgrep nmbd`
if [ -z "$nmbd" ]; then
  echo "FAIL: nmbd is not running."
  exit 1
fi

winbindd=`pgrep winbindd`
if [ -z "$winbindd" ]; then
  echo "FAIL: winbindd is not running."
  exit 1
fi

sid=`net getlocalsid | grep "S-1-5"` #req. root
if [ -z "$sid" ]; then
  echo "FAIL: Default samba workgroup is not set."
  exit 1
fi

users=`net usersidlist | grep "UBUNTU"`
if [ -z "$sid" ]; then
  echo "FAIL: samba userId is not set."
  exit 1
fi

exit 0