lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LYNX-DEV rearranging userdefs.h


From: Nelson Henry Eric
Subject: LYNX-DEV rearranging userdefs.h
Date: Tue, 16 Sep 1997 17:15:32 +0900 (JST)

My suggestion to move the anonymous-account specific defines out
of userdefs.h and put them in a separate file was not well received,
and for understandable reasons.  The same aim, to make it less painful
for someone to compile Lynx for the first time, might be better
achieved by simply consolidating, making more brief, and moving to
the end of userdefs.h all the defines related to public-access Lynx.
A patch to do that is appended (based on lynx2.7.1ac-0.60).  The
defaults are slightly more "paranoid" for OUTSIDE and random g)oto's.

__Henry

*** userdefs.h.orig     Tue Sep 16 16:04:40 1997
--- userdefs.h  Tue Sep 16 16:53:16 1997
***************
*** 6,12 ****
   */
  
  /*******************************************************************
!  * There are three sections to this document
   *  Section 1.  Things you MUST change or verify
   *    Section 1a)  VMS specific things
   *    Section 1b)  UNIX specific things
--- 6,12 ----
   */
  
  /*******************************************************************
!  * There are four sections to this document:
   *  Section 1.  Things you MUST change or verify
   *    Section 1a)  VMS specific things
   *    Section 1b)  UNIX specific things
***************
*** 17,22 ****
--- 17,25 ----
   *  Section 3.  Things you should only change after you have a good
   *              understanding of the program!
   *
+  *  Section 4.  Things you MUST check only if you plan to use Lynx in
+  *              an anonymous account (allow public access to Lynx)!
+  *
   */
  
  #ifndef USERDEFS_H
***************
*** 790,815 ****
  #define MESSAGESECS 2
  #define ALERTSECS 3
  
- /*****************************
-  * Enter the name of your anonymous account if you have one
-  * as ANONYMOUS_USER.  UNIX systems will use a cuserid
-  * or get_login call to determine if the current user is
-  * the ANONYMOUS_USER.  VMS systems will use getenv("USER").
-  *
-  * You may use the "-anonymous" option for multiple accounts,
-  * or for precautionary reasons in the anonymous account,
-  * as well.
-  *
-  * It is very important to have this correctly defined or include
-  * the "-anonymous" command line option for invokations of Lynx
-  * in an anonymous account!  If you do not you will be putting 
-  * yourself at GREAT security risk!
-  *
-  * Later on in this file you can specify privileges for the
-  * anonymous account.
-  */
- #define ANONYMOUS_USER ""
- 
  /******************************
   * SHOW_COLOR controls whether the program displays in color by default.
   */
--- 793,798 ----
***************
*** 864,980 ****
  #define LY_UMLAUT
  
  /*******************************
-  * set to FALSE if you don't want users of your anonymous account
-  * who are calling from inside your local domain
-  * to be able to telnet back out
-  */
- #define CAN_ANONYMOUS_INSIDE_DOMAIN_TELNET    TRUE
- 
- /*******************************
-  * set to FALSE if you don't want users of your anonymous
-  * account who are calling from outside your
-  * local domain to be able to telnet back out
-  */
- #define CAN_ANONYMOUS_OUTSIDE_DOMAIN_TELNET   TRUE
- 
- /*******************************
-  * set to FALSE if you don't want users of your anonymous account
-  * who are calling from inside your local domain
-  * to be able to read news
-  */
- #define CAN_ANONYMOUS_INSIDE_DOMAIN_READ_NEWS TRUE
- 
- /*******************************
-  * set to FALSE if you don't want users of your anonymous
-  * account who are calling from outside your
-  * local domain to be able to read news
-  */
- #define CAN_ANONYMOUS_OUTSIDE_DOMAIN_READ_NEWS        FALSE
- 
- /*******************************
-  * set to FALSE if you don't want users of your anonymous
-  * account who are calling from inside your local domain
-  * to be able to use ftp
-  */
- #define CAN_ANONYMOUS_INSIDE_DOMAIN_FTP               TRUE
- 
- /*******************************
-  * set to FALSE if you don't want users of your anonymous
-  * account who are calling from outside your local domain
-  * to be able to use ftp
-  */
- #define CAN_ANONYMOUS_OUTSIDE_DOMAIN_FTP      TRUE
- 
- /*******************************
-  * set to FALSE if you don't want users of your anonymous
-  * account who are calling from inside your local domain 
-  * to be able to use rlogin
-  */
- #define CAN_ANONYMOUS_INSIDE_DOMAIN_RLOGIN    TRUE
- 
- /*******************************
-  * set to FALSE if you don't want users of your anonymous
-  * account who are calling from outside your local domain
-  * to be able to use rlogin
-  */
- #define CAN_ANONYMOUS_OUTSIDE_DOMAIN_RLOGIN   TRUE
- 
- /*******************************
-  * set to FALSE if you don't want users of your anonymous
-  * account to be able to goto random URLs. (The 'g' command)
-  */
- #define CAN_ANONYMOUS_GOTO            TRUE
- 
- /*******************************
-  * set to FALSE if you don't want users of your anonymous
-  * account to be able to goto particular URLs.
-  */
- #define CAN_ANONYMOUS_GOTO_CSO                TRUE
- #define CAN_ANONYMOUS_GOTO_FILE               TRUE
- #define CAN_ANONYMOUS_GOTO_FINGER     TRUE
- #define CAN_ANONYMOUS_GOTO_FTP                TRUE
- #define CAN_ANONYMOUS_GOTO_GOPHER     TRUE
- #define CAN_ANONYMOUS_GOTO_HTTP               TRUE
- #define CAN_ANONYMOUS_GOTO_HTTPS      TRUE
- #define CAN_ANONYMOUS_GOTO_LYNXCGI    TRUE
- #define CAN_ANONYMOUS_GOTO_LYNXEXEC   TRUE
- #define CAN_ANONYMOUS_GOTO_LYNXPROG   TRUE
- #define CAN_ANONYMOUS_GOTO_MAILTO     TRUE
- #define CAN_ANONYMOUS_GOTO_NEWS               TRUE
- #define CAN_ANONYMOUS_GOTO_NNTP               TRUE
- #define CAN_ANONYMOUS_GOTO_RLOGIN     TRUE
- #define CAN_ANONYMOUS_GOTO_SNEWS      TRUE
- #define CAN_ANONYMOUS_GOTO_TELNET     TRUE
- #define CAN_ANONYMOUS_GOTO_TN3270     TRUE
- #define CAN_ANONYMOUS_GOTO_WAIS               TRUE
- 
- /*******************************
-  * set to FALSE if you don't want users of your anonymous
-  * account to be able to specify a port in 'g'oto commands
-  * for telnet URLs.
-  */
- #define CAN_ANONYMOUS_GOTO_TELNET_PORT        FALSE
- 
- /*******************************
-  * set to FALSE if you don't want users of your anonymous
-  * account to be able to jump to URLs (The 'J' command)
-  * via the shortcut entries in your JUMPFILE.
-  */
- #define CAN_ANONYMOUS_JUMP    TRUE
- 
- /*******************************
-  * set to FALSE if you don't want users of your anonymous
-  * account to be able to mail
-  */
- #define CAN_ANONYMOUS_MAIL    TRUE
- 
- /*******************************
-  * set to FALSE if you don't want users of your anonymous
-  * account to be able to print
-  */
- #define CAN_ANONYMOUS_PRINT   FALSE
- 
- /*******************************
   * Execution links/scripts configuration.
   *
   * Execution links and scripts allow you to run
--- 847,852 ----
***************
*** 1375,1380 ****
--- 1247,1378 ----
  #define       RM_PATH         "/bin/rm"
  #define COPY_PATH     "/bin/cp"
  #define CHMOD_PATH    "/bin/chmod"
+ 
+ 
+ /****************************************************************
+  *  Section 4.  Things you MUST check only if you plan to use Lynx
+  *              in an anonymous account (allow public access to Lynx)
+  *              This section may be skipped by those people building
+  *              for private use only.
+  *
+  */
+ 
+ /*****************************
+  * Enter the name of your anonymous account if you have one
+  * as ANONYMOUS_USER.  UNIX systems will use a cuserid
+  * or get_login call to determine if the current user is
+  * the ANONYMOUS_USER.  VMS systems will use getenv("USER").
+  *
+  * You may use the "-anonymous" option for multiple accounts,
+  * or for precautionary reasons in the anonymous account, as well.
+  *
+  * Specify privileges for the anonymous account below.
+  *
+  * It is very important to have this correctly defined or include
+  * the "-anonymous" command line option for invocation of Lynx
+  * in an anonymous account!  If you do not you will be putting 
+  * yourself at GREAT security risk!
+  */
+ #define ANONYMOUS_USER ""
+ 
+ /*******************************
+  * set to FALSE if you don't want users of your anonymous
+  * account to be able to telnet back out
+  * INSIDE_DOMAIN: users calling from inside your local domain
+  * OUTSIDE_DOMAIN: users calling from outside your local domain
+  */
+ #define CAN_ANONYMOUS_INSIDE_DOMAIN_TELNET    TRUE
+ #define CAN_ANONYMOUS_OUTSIDE_DOMAIN_TELNET   FALSE
+ 
+ /*******************************
+  * set to FALSE if you don't want users of your anonymous
+  * account to be able to use ftp
+  * INSIDE_DOMAIN: users calling from inside your local domain
+  * OUTSIDE_DOMAIN: users calling from outside your local domain
+  */
+ #define CAN_ANONYMOUS_INSIDE_DOMAIN_FTP               TRUE
+ #define CAN_ANONYMOUS_OUTSIDE_DOMAIN_FTP      FALSE
+ 
+ /*******************************
+  * set to FALSE if you don't want users of your anonymous
+  * account to be able to use rlogin
+  * INSIDE_DOMAIN: users calling from inside your local domain
+  * OUTSIDE_DOMAIN: users calling from outside your local domain
+  */
+ #define CAN_ANONYMOUS_INSIDE_DOMAIN_RLOGIN    TRUE
+ #define CAN_ANONYMOUS_OUTSIDE_DOMAIN_RLOGIN   FALSE
+ 
+ /*******************************
+  * set to FALSE if you don't want users of your anonymous
+  * account to be able to read news
+  * INSIDE_DOMAIN: users calling from inside your local domain
+  * OUTSIDE_DOMAIN: users calling from outside your local domain
+  */
+ #define CAN_ANONYMOUS_INSIDE_DOMAIN_READ_NEWS TRUE
+ #define CAN_ANONYMOUS_OUTSIDE_DOMAIN_READ_NEWS        FALSE
+ 
+ /*******************************
+  * set to FALSE if you don't want users of your anonymous
+  * account to be able to goto random URLs. (The 'g' command)
+  */
+ #define CAN_ANONYMOUS_GOTO            TRUE
+ 
+ /*******************************
+  * set to FALSE if you don't want users of your anonymous
+  * account to be able to goto particular URLs.
+  */
+ #define CAN_ANONYMOUS_GOTO_CSO                FALSE
+ #define CAN_ANONYMOUS_GOTO_FILE               FALSE
+ #define CAN_ANONYMOUS_GOTO_FINGER     TRUE
+ #define CAN_ANONYMOUS_GOTO_FTP                FALSE
+ #define CAN_ANONYMOUS_GOTO_GOPHER     FALSE
+ #define CAN_ANONYMOUS_GOTO_HTTP               TRUE
+ #define CAN_ANONYMOUS_GOTO_HTTPS      TRUE
+ #define CAN_ANONYMOUS_GOTO_LYNXCGI    FALSE
+ #define CAN_ANONYMOUS_GOTO_LYNXEXEC   FALSE
+ #define CAN_ANONYMOUS_GOTO_LYNXPROG   FALSE
+ #define CAN_ANONYMOUS_GOTO_MAILTO     TRUE
+ #define CAN_ANONYMOUS_GOTO_NEWS               FALSE
+ #define CAN_ANONYMOUS_GOTO_NNTP               FALSE
+ #define CAN_ANONYMOUS_GOTO_RLOGIN     FALSE
+ #define CAN_ANONYMOUS_GOTO_SNEWS      FALSE
+ #define CAN_ANONYMOUS_GOTO_TELNET     FALSE
+ #define CAN_ANONYMOUS_GOTO_TN3270     FALSE
+ #define CAN_ANONYMOUS_GOTO_WAIS               TRUE
+ 
+ /*******************************
+  * set to FALSE if you don't want users of your anonymous
+  * account to be able to specify a port in 'g'oto commands
+  * for telnet URLs.
+  */
+ #define CAN_ANONYMOUS_GOTO_TELNET_PORT        FALSE
+ 
+ /*******************************
+  * set to FALSE if you don't want users of your anonymous
+  * account to be able to jump to URLs (The 'J' command)
+  * via the shortcut entries in your JUMPFILE.
+  */
+ #define CAN_ANONYMOUS_JUMP    FALSE
+ 
+ /*******************************
+  * set to FALSE if you don't want users of your anonymous
+  * account to be able to mail
+  */
+ #define CAN_ANONYMOUS_MAIL    TRUE
+ 
+ /*******************************
+  * set to FALSE if you don't want users of your anonymous
+  * account to be able to print
+  */
+ #define CAN_ANONYMOUS_PRINT   FALSE
+ 
+ /*****************************
+  * be sure you have read about and set defines above in Sections
+  * 1, 2 and 3 that could  affect Lynx in an anonymous account,
+  * especially LOCAL_EXECUTION_LINKS_ALWAYS_OFF_FOR_ANONYMOUS.
+  *
+  * This ends the section specific to anonymous accounts.
+  */
  
  #endif /* HAVE_CONFIG_H */
  #endif /* DOSPATH */
;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]