home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / gnu / utils / bug / 2319 next >
Encoding:
Text File  |  1993-01-05  |  11.1 KB  |  366 lines

  1. Newsgroups: gnu.utils.bug
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!nusunix2.nus.sg!isc20244
  3. From: isc20244@nusunix2.nus.sg (SEE LIN FEN)
  4. Subject: bug in Screen?
  5. Message-ID: <9301031445.AA03246@nusunix2.nus.sg>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Mon, 4 Jan 1993 06:45:12 GMT
  10. Approved: bug-gnu-utils@prep.ai.mit.edu
  11. Lines: 353
  12.  
  13. It seems that the iScreen I compiled doesn't want to work properly with
  14. tcsh when I installed it without setuid root
  15. The config.h file is included below
  16.  
  17. /* config.h.  Generated automatically by configure.  */
  18. /* Template configuration file for screen.  -*- C -*-
  19.  * Copyright (c) 1991
  20.  *      Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
  21.  *      Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
  22.  * Copyright (c) 1987 Oliver Laumann
  23.  *
  24.  * This program is free software; you can redistribute it and/or modify
  25.  * it under the terms of the GNU General Public License as published by
  26.  * the Free Software Foundation; either version 1, or (at your option)
  27.  * any later version.
  28.  *
  29.  * This program is distributed in the hope that it will be useful,
  30.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  31.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  32.  * GNU General Public License for more details.
  33.  *
  34.  * You should have received a copy of the GNU General Public License
  35.  * along with this program (see the file COPYING); if not, write to the
  36.  * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  37.  *
  38.  * Noteworthy contributors to screen's design and implementation:
  39.  *    Wayne Davison (davison@borland.com)
  40.  *    Patrick Wolfe (pat@kai.com, kailand!pat)
  41.  *    Bart Schaefer (schaefer@cse.ogi.edu)
  42.  *    Nathan Glasser (nathan@brokaw.lcs.mit.edu)
  43.  *    Larry W. Virden (lwv27%cas.BITNET@CUNYVM.CUNY.Edu)
  44.  *    Howard Chu (hyc@hanauma.jpl.nasa.gov)
  45.  *    Tim MacKenzie (tym@dibbler.cs.monash.edu.au)
  46.  *    Markku Jarvinen (mta@{cc,cs,ee}.tut.fi)
  47.  *    Marc Boucher (marc@CAM.ORG)
  48.  *
  49.  ****************************************************************
  50.  * $Id: config.all,v 1.2 92/02/03 02:30:36 jnweiger Exp $ FAU
  51.  */
  52.  
  53. /*
  54.  * This file has two parts:
  55.  * 1.  Site configuration.  Preferences that depend on your tastes
  56.  *     or on details of your individual installation.
  57.  *     You should check these values by hand.
  58.  *
  59.  * 2.  O.S. configuration.  Variables that depend on what kind of
  60.  *     operating system you are running.
  61.  *     The configure script tries to set these correctly automatically
  62.  *     when it creates config.h from config.h.in.
  63.  *     If it messes up, you can set them by hand.
  64.  */
  65.  
  66.  
  67. /*
  68.  *        Site Configuration Section
  69.  */
  70.  
  71.  
  72. /*
  73.  * First, decide whether to install screen set-uid to root.
  74.  * This isn't necessary to use screen, but it allows the pseudo-ttys
  75.  * to be set to their proper owner (for security purposes), /etc/utmp to be
  76.  * updated, and /dev/kmem to be accessed to read the load average values.
  77.  *
  78.  * Failing to install it suid root (e.g., if you fear a trojan horse) doesn't
  79.  * have any major disadvantages, except that w(1) and some other utilities
  80.  * will display only "screen" as the current process, and the pseudo ttys
  81.  * (ptys) used for the virtual terminals won't have their owners set.  Screen
  82.  * can provide you some pty security by opening the ptys exclusively, but
  83.  * this has the unfortunate side-effect of keeping your own subprocesses from
  84.  * being able to open /dev/tty.
  85.  *
  86.  * An alternative to installing screen set-uid root is to install it set-gid
  87.  * utmp (with the file /etc/utmp installed to be group-utmp writable) or
  88.  * set-gid kmem (with /dev/kmem set to be group-kmem readable) or some other
  89.  * custom group to give you both.  The final alternative is to omit /etc/utmp
  90.  * updating and the /dev/kmem reading (see the following defines) and simply
  91.  * run screen as a regular program -- its major functions will be unaffected.
  92.  *
  93.  * If screen is going to be installed set-uid root, you MUST define SUIDROOT.
  94.  */
  95. #undef SUIDROOT
  96.  
  97. /*
  98.  * If screen is installed with permissions to update /etc/utmp (such as if
  99.  * it is installed set-uid root), define UTMPOK.  Set LOGINDEFAULT to one (1)
  100.  * if you want entries added to /etc/utmp by default, else set it to zero (0).
  101.  */
  102. #undef UTMPOK
  103. #undef LOGINDEFAULT    1
  104.  
  105. /*
  106.  * If UTMPOK is defined and your system (incorrectly) counts logins by
  107.  * counting non-null entries in /etc/utmp (instead of counting non-null
  108.  * entries with no hostname that are not on a pseudo tty), define USRLIMIT
  109.  * to have screen put an upper-limit on the number of entries to write
  110.  * into /etc/utmp.  This helps to keep you from exceeding a limited-user
  111.  * license.
  112.  */
  113. #undef USRLIMIT
  114.  
  115. /*
  116.  * If screen is NOT installed set-uid root, screen can provide tty security
  117.  * by exclusively locking the ptys.  While this keeps other users from
  118.  * opening your ptys, it also keeps your own subprocesses from being able
  119.  * to open /dev/tty.  Define LOCKPTY to add this exclusive locking.
  120.  */
  121. #undef LOCKPTY
  122.  
  123. /*
  124.  * If your version of NFS supports named sockets and you install screen
  125.  * suid root, you may need to define NFS_HACK for screen to be able to
  126.  * open the sockets.
  127.  */
  128. #undef NFS_HACK
  129.  
  130. /*
  131.  * By default screen will create a directory named ".screen" in the user's
  132.  * HOME directory to contain the named sockets.  If this causes you problems
  133.  * (e.g., some user's HOME directories are NFS-mounted and don't support
  134.  * named sockets) you can have screen create the socket directories in a
  135.  * common subdirectory, such as /tmp or /usr/tmp.  It makes things a little
  136.  * more secure if you choose a directory where the "sticky" bit is on, but
  137.  * this isn't required.  Screen will name the subdirectories "S-$USER"
  138.  * (e.g /tmp/S-davison).
  139.  * Do not define TMPTEST unless it's for debugging purpose.
  140.  * If you want to have your socket directory in "/tmp/screens" then
  141.  * define LOCALSOCKDIR and change the definition of SOCKDIR below.
  142.  */
  143. #define LOCALSOCKDIR
  144.  
  145. #ifdef LOCALSOCKDIR
  146. # ifndef TMPTEST
  147. #  define SOCKDIR "/tmp/screens"
  148. # else
  149. #  define SOCKDIR "/tmp/testscreens"
  150. # endif
  151. #endif
  152.  
  153. /*
  154.  * If you'd rather see the status line on the first line of your
  155.  * terminal rather than the last, define TOPSTAT.
  156.  * This should really be screenrc-settable, not a compile option.
  157.  */
  158. #undef TOPSTAT
  159.  
  160. /*
  161.  * define LOCK if you want to use a lock program for a screenlock.
  162.  * define PASSWORD for secure reattach of your screen.
  163.  * define COPY_PASTE to use the famous hacker's treasure zoo.
  164.  * define POW_DETACH to have a detach_and_logout key.
  165.  * define REMOTE_DETACH (-d option) to move screen between terminals.
  166.  */
  167. #define LOCK
  168. #define PASSWORD
  169. #define COPY_PASTE
  170. #define REMOTE_DETACH
  171. #define POW_DETACH
  172.  
  173. /*
  174.  * As error messages are mostly meaningless to the user, we
  175.  * try to throw out phrases that are somewhat more familiar
  176.  * to ...well, at least familiar to us NetHack players.
  177.  */
  178. #define NETHACK
  179.  
  180.  
  181. /*
  182.  *        O.S. Configuration Section
  183.  *        configure defines these symbols if appropriate
  184.  */
  185.  
  186.  
  187. /*
  188.  * Define POSIX if your system supports IEEE Std 1003.1-1988 (POSIX).
  189.  */
  190. #undef POSIX
  191.  
  192. /*
  193.  * Define BSDJOBS if you have BSD-style job control (both process
  194.  * groups and a tty that deals correctly with them).
  195.  */
  196. #define BSDJOBS 1
  197.  
  198. /*
  199.  * Define TERMIO if you have struct termio instead of struct sgttyb.
  200.  * This is usually the case for SVID systems, whereas BSD uses sgttyb.
  201.  * POSIX systems should define this anyway, even though they use
  202.  * struct termios.
  203.  */
  204. #define TERMIO 1
  205.  
  206. /*
  207.  * Define TERMINFO if your machine emulates the termcap routines
  208.  * with the terminfo database.
  209.  * Thus the .screenrc file is parsed for
  210.  * the command 'terminfo' and not 'termcap'.
  211.  */
  212. #undef TERMINFO
  213.  
  214. /*
  215.  * Define SYSV if your machine is SYSV complient (Sys V, HPUX, A/UX)
  216.  */
  217. #undef SYSV
  218.  
  219. /*
  220.  * Define SIGVOID if your signal handlers return void.  On older
  221.  * systems, they return int, but on newer ones, they return void.
  222.  */
  223. #define SIGVOID 1
  224.  
  225. /*
  226.  * Define DIRENT if your system has <dirent.h> instead of <sys/dir.h>
  227.  */
  228. #define DIRENT 1
  229.  
  230. /*
  231.  * If your system has getutent(), pututline(), etc. to write to the
  232.  * utmp file, define GETUTENT.
  233.  */
  234. #undef GETUTENT
  235.  
  236. /*
  237.  * Define UTHOST if the utmp file has a host field.
  238.  */
  239. #define UTHOST 1
  240.  
  241. /*
  242.  * If ttyslot() breaks getlogin() by returning indexes to utmp entries of
  243.  * type DEAD_PROCESS, then our getlogin() replacement should be selected by
  244.  * defining BUGGYGETLOGIN.  This is only known to happen on SVR4.
  245.  * This is only used if UTMPOK is defined.
  246.  */
  247. #undef BUGGYGETLOGIN
  248.  
  249. /*
  250.  * If your system does not have the calls setreuid() and setregid(), define
  251.  * NOREUID to force screen to use a forked process to safely create output
  252.  * files without retaining any special privileges.  (Output logging will be
  253.  * disabled, however.)
  254.  */
  255. #undef NOREUID
  256.  
  257. /*
  258.  * If your system has the new format /etc/ttys (like 4.3 BSD) and the
  259.  * getttyent(3) library functions, define GETTTYENT.
  260.  */
  261. #define GETTTYENT 1
  262.  
  263. /*
  264.  * Define USEBCOPY if the bcopy() from your system's C library supports the
  265.  * overlapping of source and destination blocks.  When undefined, screen
  266.  * uses its own (probably slower) version of bcopy().
  267.  */
  268. #undef USEBCOPY
  269.  
  270. /*
  271.  * If your system has vsprintf() and requires the use of the macros in
  272.  * <varargs.h> to use functions with variable arguments, define USEVARARGS.
  273.  */
  274. #undef USEVARARGS
  275.  
  276. /*
  277.  * Define this if your system supports named pipes
  278.  * instead of sockets.
  279.  */
  280. #undef NAMEDPIPE
  281.  
  282. /*
  283.  * if your system does not come with a putenv()/getenv() functions, 
  284.  * you may bring in our own code by defining NEEDSETENV *and* adding 
  285.  * putenv.o to OFILES in your Makefile.
  286.  */
  287. #undef NEEDSETENV
  288.  
  289. /*
  290.  * Define if you have shadow passwords and <shadow.h>.
  291.  */
  292. #undef SHADOWPW
  293.  
  294. /*
  295.  * Define if you are not SYSV, POSIX, apollo, or sysV68,
  296.  * yet your headers define pid_t.
  297.  */
  298. #define PID_T_DEFINED 1
  299.  
  300. /*
  301.  * Define if your headers define sig_t.
  302.  */
  303. #undef SIG_T_DEFINED
  304.  
  305. /*
  306.  * Define if you have nlist.h.  For getting the load average.
  307.  */
  308. #define NLIST_STRUCT 1
  309.  
  310. /*
  311.  * Define each of these if the appropriate function is declared in
  312.  * your system header files.
  313.  */
  314. #undef CRYPT_DECLARED
  315. #undef GETHOSTNAME_DECLARED
  316. #undef KILLSTUFF_DECLARED /* kill and maybe killpg */
  317. #undef MEMFUNCS_DECLARED /* bzero, bcopy or memset */
  318. #undef MKNOD_DECLARED /* in sys/stat.h */
  319. #undef NLIST_DECLARED
  320. #undef PUTENV_DECLARED
  321. #undef REUID_DECLARED /* setres?[ug]id */
  322. #define SETPGID_DECLARED 1
  323. #undef VPRNT_DECLARED /* vsprintf */
  324. #undef WAITSTUFF_DECLARED /* wait3 */
  325.  
  326. /*
  327.  * If you are on a SYS V machine that restricts filename length to 14 
  328.  * characters, you may need to enforce that by defining this to 14.
  329.  */
  330. #ifndef NAME_MAX
  331. #undef NAME_MAX
  332. #endif
  333.  
  334. /*
  335.  * The characters to try when finding pty names to open,
  336.  * on some types of systems.
  337.  * Try each char in PTY_FIRST_CHARS followed by each char in
  338.  * PTY_SECOND_CHARS in succession until finding a free pty.
  339.  */
  340. #ifdef MIPS
  341. #define PTY_FIRST_CHARS "zyxwvutsrqp"
  342. #endif
  343.  
  344. #ifdef hpux
  345. #define PTY_FIRST_CHARS "pqrstuvw"
  346. #endif
  347.  
  348. #ifdef sun
  349. #define PTY_FIRST_CHARS "qprstuvwxyzPQRST"
  350. #endif
  351.  
  352. #ifndef PTY_FIRST_CHARS
  353. #define PTY_FIRST_CHARS "qpr"
  354. #endif
  355.  
  356. #ifndef PTY_SECOND_CHARS
  357. #define PTY_SECOND_CHARS "0123456789abcdef"
  358. #endif
  359.  
  360. Hope that you can figure out what is wrong because the error I am getting is som
  361. something like
  362. mesg> Not owner
  363. csh>
  364.  
  365.  
  366.