specifies the mount binary path (default is "/bin/mount")
--umount-bin
specifies the umount binary path (default is "/bin/umount")
--mount-tab
specifies the mount table path (default is "/etc/mtab")
--bind-opt
specifies the option used when binding a path to a mount point (default is "--bind", or "-obind" if
mount binary is Busybox)
--mount-expiration
specifies the number of minutes to wait before expiring unused mount points (default is 60)
--shells
specifies the path to a file that lists all valid login shells (default is "/etc/shells")
--shell-list
specifies a colon-separated list of valid login shells; "/etc/shells" is not read if this is
specified
--shells and --shell-list shouldn't be defined at the same time.
The pid of the daemon process is printed to stdout. The command exits immediately.
The debug log can be opened and closed at run-time by sending the daemon process the SIGUSR1 (open log) and SIGUSR2
(close log) signals. If the debug log was not opened at startup with the --debug option, the debug log will be written
to "/tmp/sbrshd-<port>.log" (where <port> is the value of the --port option).
4. Client Config
The client configuration file lists all known TARGETs (see Client Usage). The first line of a TARGET block must not
contain whitespaces before the name of the TARGET. The subsequent lines must be indented. # is a line end comment
character. The root path of the command is $HOME/IP-TARGET.
The layout of the first line:
<target> [<username>@]<ip>[:<port>] <password>
The subsequent lines define the mounts needed by the TARGET (TYPE is either "nfs" or "bind"):
The daemon configuration file lists all known client IPs and passwords. Each user has her own .sbrshd file in her
home directory. # is a line end comment character.
The layout is:
<ip> <password>
6. Environment Variables
The command execution environment at the target device can be controlled via a few environment variables.
"SBRSH_ENV_" prefix will be stripped from all variables having one. If a corresponding variable without the prefix
exists, it will be overridden. If the variable's value is "(UNSET)", the corresponding variable will be removed from
environment. For example the dynamic linker can be controlled this way (via the LD_* variables) without affecting the
sbrsh client itself.
The resource limits can be set using variables with the "SBRSH_RLIMIT_" prefix. The value can be either an integer
or "unlimited". The supported setting are: