10 Jun 2006
csp_sucp
20060610
NAME
csp_sucp - Mix ssh with sudo, to allow for remote copy
SYNOPSIS
csp_sucp
file (file)
h ([user@]host)
dir (directory)
[s (su-user)]
DESCRIPTION
csp_sucp calls cat(1) from within sudo(1) from within ssh(1). This allows one
to copy files to accounts on hosts one can only reach by calling sudo(1) on the
ssh-reachable remote host.
Typically, one wants to install a root-owned file, but one does not want to
allow access to the root-account directly from ssh. Typically sudo is used as
an extra line of defense.
USAGE
csp_sucp is typically invoked using caspar(7). See caspar(7) for
information on how to link csp_sucp to caspar.
EXAMPLES
Some examples:
csp_sucp fstab rms@bilbo /etc
csp_sucp trailer.txt monty-python commit/ list
BUGS
If NOPASSWD is not set in the sudoers(5) file, and one's timestamp is expired,
csp_sucp will forward the sudo password prompt. The given password will
be echoed on the console!
AUTHOR
Joost van Baal
SEE ALSO
caspar(7)
The caspar homepage is at http://mdcc.cx/caspar/ .