X-Git-Url: https://git.distorted.org.uk/~mdw/fwd/blobdiff_plain/2afc240213249e0f4763f12c9ae583f5c9403db6..fc170a33ade808c25d6a7dee7dd00aba290477c3:/fw.1 diff --git a/fw.1 b/fw.1 index 2d23b0d..df52079 100644 --- a/fw.1 +++ b/fw.1 @@ -1,6 +1,6 @@ .\" -*-nroff-*- .\" -.\" $Id: fw.1,v 1.8 1999/12/22 15:44:43 mdw Exp $ +.\" $Id: fw.1,v 1.9 2000/03/23 00:37:33 mdw Exp $ .\" .\" Manual page for fw .\" @@ -28,6 +28,10 @@ .\" ---- Revision history --------------------------------------------------- .\" .\" $Log: fw.1,v $ +.\" Revision 1.9 2000/03/23 00:37:33 mdw +.\" Add option to change user and group after initialization. Naughtily +.\" reassign short equivalents of --grammar and --options. +.\" .\" Revision 1.8 1999/12/22 15:44:43 mdw .\" Fix some errors, and document new option. .\" @@ -129,6 +133,10 @@ fw \- port forwarder .RB [ \-dlq ] .RB [ \-f .IR file ] +.RB [ \-s +.IR user ] +.RB [ \-g +.IR group ] .IR config-stmt ... . .\"-------------------------------------------------------------------------- @@ -175,6 +183,14 @@ Writes the version number to standard output and exits successfully. .B "\-u, \-\-usage" Writes a terse usage summary to standard output and exits successfully. .TP +.B "\-G, \-\-grammar" +Writes a summary of the configuration file grammar to standard output +and exits successfully. +.TP +.B "\-O, \-\-options" +Writes a summary of the source and target options to standard output and +exits successfully. +.TP .BI "\-f, \-\-file=" file Read configuration information from .IR file . @@ -190,10 +206,24 @@ initializing properly. .B "\-l, \-\-syslog, \-\-log" Emit logging information to the system log, rather than standard error. .TP -.B "-q, \-\-quiet" +.B "\-q, \-\-quiet" Don't output any logging information. This option is not recommended for normal use, although it can make system call traces clearer so I use it when debugging. +.TP +.BI "\-s, \-\-setuid=" user +Change uid to that of +.IR user , +which may be either a user name or uid number, after initializing all +the sources. This will usually require elevated privileges. +.TP +.BI "\-g, \-\-setgid=" group +Change gid to that of +.IR group , +which may be either a group name or gid number, after initializing all +the sources. If the operating system understands supplementary groups +then the supplementary groups list is altered to include only +.IR group . .PP Any further command line arguments are interpreted as configuration lines to be read. Configuration supplied in command line arguments has