This file is indexed.

/usr/share/doc/remctl-client/examples/rsh-wrapper is in remctl-client 3.10-1ubuntu1.

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
#!/bin/sh
#
# One of the things that one can do with remctl is create commands that
# actually run on remote systems, or even emulate rsh with tighter ACLs
# and no remote accounts.
#
# For example, suppose you want to let users run a variety of commands
# on remote servers.  First, write a program that looks at its first
# argument to figure out what command to run and then passes along its other
# arguments appropriately.  Install that program on the systems where users
# should be able to start commands.  On each system, also install remctld
# with a configuration file containing something like:
#
#     start ANY /usr/local/sbin/start-backend /etc/remctl/acl/starters
#
# where /usr/local/sbin/start-backend is that implementation.  Put the
# Kerberos principals of the people who should be able to run the backend in
# /etc/remctl/acl/starters.
#
# Now, install the following script as "start".  Users can then type:
#
#     start <host> <action> <option> ...
#
# very similar to the syntax of rsh.  In fact, if you use "rsh" as the type
# in your remctld configuration, you can even install this script as rsh.
#
# This means that you can even tell software that only knows how to use
# rsh that the start script is your rsh program and let that software run
# remote commands with the tighter ACL checking of remctld and no need for
# an account on the remote system.
#
# This idea and sample script are from Romain LENGLET.
#
# Copyright 2006 Romain LENGLET
# Copyright 2007
#     The Board of Trustees of the Leland Stanford Junior University
#
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty provided the copyright notice and
# this notice are preserved.  This file is offered as-is, without any
# warranty.

if [ $# -lt 2 ] ; then
    echo "Invalid number of parameters"
    exit 1
fi
TYPE="$0"
HOST="$1"
SERVICE="$2"
shift 2
exec remctl "${HOST}" "${TYPE}" "${SERVICE}" "$@"