Blame src/daemon/server_config.h.in
|
Packit Service |
407539 |
/* -*-c-*- */
|
|
Packit Service |
407539 |
|
|
Packit Service |
407539 |
/* This is a sample config file.
|
|
Packit Service |
407539 |
*
|
|
Packit Service |
407539 |
* Copy this file to 'server_config.h' and edit it to fix your needs !
|
|
Packit Service |
407539 |
*
|
|
Packit Service |
407539 |
* You can also use the 'server_config.pl' script to create 'server_config.h'.
|
|
Packit Service |
407539 |
*
|
|
Packit Service |
407539 |
*/
|
|
Packit Service |
407539 |
|
|
Packit Service |
407539 |
#define SERVER_PORT 42800 /* Port the server should listen on. */
|
|
Packit Service |
407539 |
|
|
Packit Service |
407539 |
/* NOTE: On RedHat 5.1 nobody is UID 99 and GID 99.
|
|
Packit Service |
407539 |
*
|
|
Packit Service |
407539 |
* The 'server_config.pl' script will use the real UID and GID of 'nobody'
|
|
Packit Service |
407539 |
* on your system as default.
|
|
Packit Service |
407539 |
*
|
|
Packit Service |
407539 |
* NOTE: This only works if the server is started as root or SUID to root.
|
|
Packit Service |
407539 |
*/
|
|
Packit Service |
407539 |
|
|
Packit Service |
407539 |
#define SERVER_UID 99 /* User ID the server should run as. */
|
|
Packit Service |
407539 |
#define SERVER_GID 99 /* Group ID the server should run as. */
|
|
Packit Service |
407539 |
|
|
Packit Service |
407539 |
#define HOST_TABLE_ENTRIES 1 /* Number of entries in the host table. */
|
|
Packit Service |
407539 |
|
|
Packit Service |
407539 |
/* List of hosts that should be authorized to connect to the server.
|
|
Packit Service |
407539 |
*
|
|
Packit Service |
407539 |
* SECURITY WARNING:
|
|
Packit Service |
407539 |
* Enabling access for a particular hosts means the ALL USERS on this host
|
|
Packit Service |
407539 |
* will be allowed to connect to the server !
|
|
Packit Service |
407539 |
*
|
|
Packit Service |
407539 |
* If you want security, let this table empty and use the 'xauth' method
|
|
Packit Service |
407539 |
* instead.
|
|
Packit Service |
407539 |
*
|
|
Packit Service |
407539 |
* Look at the manpage of gnuserv (1) as shipped with GNU Emacs for more
|
|
Packit Service |
407539 |
* details about security. The server uses the same security mechanisms
|
|
Packit Service |
407539 |
* like gnuserv from XEmacs 20.3.
|
|
Packit Service |
407539 |
*/
|
|
Packit Service |
407539 |
|
|
Packit Service |
407539 |
const char *permitted_host_names [HOST_TABLE_ENTRIES] =
|
|
Packit Service |
407539 |
{ NULL };
|
|
Packit Service |
407539 |
|
|
Packit Service |
407539 |
unsigned long permitted_hosts [HOST_TABLE_ENTRIES];
|
|
Packit Service |
407539 |
|