Provided by: manpages-dev_3.35-0.1ubuntu1_all rcmd, rresvport,
iruserok, ruserok - routines for returning a stream to a remote
command #include <netdb.h> /* Or <unistd.h> on some systems */
int rcmd(char **ahost, int inport, const char *locuser, const
char *remuser, const char *cmd, int *fd2p); int rresvport(int
*port); int iruserok(uint32_t raddr, int superuser, const char
*ruser, const char *luser); int ruserok(const char *rhost, int
superuser, const char *ruser, const char *luser); Feature Test
Macro Requirements for glibc (see feature_test_macros(7)):
rcmd(), rresvport(), ruserok(): _BSD_SOURCE The rcmd() function
is used by the superuser to execute a command on a remote
machine using an authentication scheme based on privileged port
numbers. The rresvport() function returns a descriptor to a
socket with an address in the privileged port space. The
iruserok() and ruserok() functions are used by servers to
authenticate clients requesting service with rcmd(). All four
functions are present in the same file