RCP(1)
rcp(1) π
okay so bestie, this page is from the General Commands Manual, and itβs all about rcp β remote file copy, but make it a whole vibe. Think βcopy files between machines,β except with Kerberos lore and a couple of chaotic footnotes. β¨
π NAME π
rcp β remote file copy
β¨ SYNOPSIS β¨
rcp [-p] [-x] [-k realm ] [-c ccachefile] [-C configfile] [-D port] [-N]
[-PN | -PO] file1 file2
rcp [-p] [-x] [-k realm] [-r] [-D port] [-N] [-PN | -PO] file ...
directory
rcp [-f | -t] ...
three moods, same command, no cap π«Ά
π¦ DESCRIPTION π¦
so rcp copies files between machines, periodt. Each file or directory argument is either a remote file name shaped like rhost:path, or a local file name (containing no : characters, or a / before any :s). π
By default, the mode and owner of file2 are preserved if it already existed; otherwise the mode of the source file modified by umask(2) on the destination host is used. very demure, very mindful file permissions π
If path is not a full path name, it is interpreted relative to your login directory on rhost. A path on a remote host may be quoted (using \, ", or Β΄) so that the metacharacters are interpreted remotely. π¦
rcp does not prompt for passwords; it uses Kerberos authentication when connecting to rhost. Each user may have a private authorization list in a file .k5login in their login directory. Each line in this file should contain a Kerberos principal name of the form principal/instance@realm. π₯
If there is a ~/.k5login file, then access is granted to the account if and only if the originating user is authenticated to one of the principals named in the ~/.k5login file. Otherwise, the originating user will be granted access to the account if and only if the authenticated principal name of the user can be mapped to the local account name using the aname -> lname mapping rules (see krb5_anadd(8) for more details). iykyk Kerberos bestie π
π OPTIONS π
-pβ attempt to preserve (duplicate) the modification times and modes of the source files in the copies, ignoring theumask. π-xβ encrypt all information transferring between hosts. privacy era π-k realmβ obtain tickets for the remote host in realm instead of the remote hostβs realm as determined bykrb_realmofhost(3).-c ccachefileβ change the default credentials cache file to ccachefile. π«Ά-rβ if any of the source files are directories, copy each subtree rooted at that name; in this case the destination must be a directory. no shortcuts, bestie πΈ-PNβ explicitly request the new version of the Kerberosrcmdprotocol. The new protocol avoids many security problems found in the old one, but is not interoperable with older servers. (An"input/output error"and a closed connection is the most likely result of attempting this combination.) If neither-PNnor-POis specified, some simple heuristics are used to guess which to try. π-POβ explicitly request the old version of the Kerberosrcmdprotocol. Same tea as above: the new protocol avoids many security problems found in the old one but is not interoperable with older servers, and an"input/output error"plus a closed connection is the most likely result of attempting this combination. If neither option is specified, some simple heuristics are used to guess which to try. π-D portβ connect to port port on the remote machine. yes, it says port port, iconic π«Ά-Nβ use a network connection, even when copying files on the local machine (used for testing purposes).-f,-tβ these options are for internal use only. They tell the remotely-runningrcpprocess (started via the Kerberos remote shell daemon) which direction files are being sent. These options should not be used by the user. In particular,-fdoes not mean that the userβs Kerberos ticket should be forwarded! do not touch, bestie π
tiny sidebar: the synopsis also shows -C configfile, but the original OPTIONS section doesnβt describe it β so Iβm not inventing a personality for it. π
rcp handles third party copies, where neither source nor target files are on the current machine. Hostnames may also take the form rname@rhost to use rname rather than the current user name on the remote host. π
π FILES π
~/.k5login(on remote host) β file containing Kerberos principals that are allowed access.
π SEE ALSO π
π BUGS π
rcpdoesnβt detect all cases where the target of a copy might be a file in cases where only a directory should be legal. directory vibe check: failed πrcpis confused by any output generated by commands in a.login,.profile, or.cshrcfile on the remote host. same, honestly π- Kerberos is only used for the first connection of a third-party copy; the second connection uses the standard Berkeley
rcpprotocol. π
thatβs the whole page, bestie π«Ά the original footer is just RCP(1), with no extra source/version or date line to report β so this cute sign-off is me telling you thereβs no secret date/version tea. mwah π
π¦ where this page comes from
- opensuse-leap 16.0: krb5-appl-clients 1.0.3-bp160.2.1 Β· MIT
- opensuse-leap 16.0: krb5-appl-clients 1.0.3-bp160.2.1 Β· MIT
- opensuse-leap 16.0: krb5-appl-clients 1.0.3-bp160.2.1 Β· MIT
- opensuse-leap 16.0: krb5-appl-clients 1.0.3-bp160.2.1 Β· MIT
- Copyright (c) 1983 The Regents of the University of California
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms