This file is indexed.

/usr/bin/lw-edit-reg is in likewise-open 6.1.0.406-0ubuntu5.

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

PROGRAM="`basename "$0"`"
BINDIR="/usr/bin"
DEFAULT_EDITORS_GRAPHICAL="gedit"
DEFAULT_EDITORS="vim vi emacs nano pico"

if [ -n "$DISPLAY" ]
then
    DEFAULT_EDITORS="$DEFAULT_EDITORS_GRAPHICAL $DEFAULT_EDITORS"
fi

MODE_SERVICE=false
ROOT_PATH=""

while [ -n "$*" ]
do
    arg="$1"
    shift

    case "$arg" in
	--help|-h)
	    cat <<EOF
$PROGRAM -- Modify Likewise configuration in your preferred text editor

Usage:  $PROGRAM [ options ] [ path ]

Options:

    path                     Subset of configuration to edit (default: entire database)
    -s,--service             Specify path to edit as a service name rather than a full path
    -e,--editor              Manually specify text editor to invoke
    -h,--help                Display this help

Environment variables:

    EDITOR                   Preferred text editor
EOF
	    exit 0
	    ;;
	--service|-s)
	    MODE_SERVICE=true
	    ;;
        -e|--editor)
	    EDITOR="$1"
	    shift
	    ;;
	*)
	    canon="`echo "$arg" | sed -e 's|/|\\\\|g' -e 's/^\[//' -e 's/\]$//'`"
	    if ${MODE_SERVICE}
	    then
		ROOT_PATH="[HKEY_THIS_MACHINE\\Services\\${canon}]"
	    else
		ROOT_PATH="[${canon}]"
	    fi
	    break
	    ;;
    esac
done

if [ -z "$EDITOR" ]
then
    for candidate in ${DEFAULT_EDITORS}
    do
	if type "${candidate}" >/dev/null 2>&1
	then
	    EDITOR="${candidate}"
	    break;
	fi
    done

    if [ -z "$EDITOR" ]
    then
	echo "Error: EDITOR not set, and no default editor could be located" >&1
	exit 1
    fi
fi

TMP_FILE="/tmp/.lw-edit-reg-$$.txt"

"${BINDIR}/lwregshell" export --legacy ${ROOT_PATH} "${TMP_FILE}" || exit $?
${EDITOR} "${TMP_FILE}" || exit $?
"${BINDIR}/lwregshell" import "${TMP_FILE}" || exit $?
rm -f "${TMP_FILE}"