home *** CD-ROM | disk | FTP | other *** search
/ chilidog.highland.cc.ks.us / chilidog.highland.cc.ks.us.zip / chilidog.highland.cc.ks.us / backup / bradford.20120521.etc.tar.gz / bradford.20120521.etc.tar / etc / security / pam_env.conf < prev    next >
Text File  |  2006-05-29  |  3KB  |  77 lines

  1. # $Date: 2005/08/16 12:27:42 $
  2. # $Author: kukuk $
  3. # $Id: pam_env.conf,v 1.1 2005/08/16 12:27:42 kukuk Exp $
  4. #
  5. # This is the configuration file for pam_env, a PAM module to load in 
  6. # a configurable list of environment variables for a 
  7. # The original idea for this came from Andrew G. Morgan ...
  8. #<quote>
  9. #   Mmm. Perhaps you might like to write a pam_env module that reads a
  10. #   default environment from a file? I can see that as REALLY
  11. #   useful... Note it would be an "auth" module that returns PAM_IGNORE
  12. #   for the auth part and sets the environment returning PAM_SUCCESS in
  13. #   the setcred function...
  14. #</quote>
  15. #
  16. # What I wanted was the REMOTEHOST variable set, purely for selfish
  17. # reasons, and AGM didn't want it added to the SimpleApps login
  18. # program (which is where I added the patch). So, my first concern is
  19. # that variable, from there there are numerous others that might/would
  20. # be useful to be set: NNTPSERVER, LESS, PATH, PAGER, MANPAGER .....
  21. #
  22. # Of course, these are a different kind of variable than REMOTEHOST in
  23. # that they are things that are likely to be configured by
  24. # administrators rather than set by logging in, how to treat them both
  25. # in the same config file?
  26. #
  27. # Here is my idea: 
  28. #
  29. # Each line starts with the variable name, there are then two possible
  30. # options for each variable DEFAULT and OVERRIDE. 
  31. # DEFAULT allows and administrator to set the value of the
  32. # variable  to some default value, if none is supplied then the empty
  33. # string is assumed. The OVERRIDE option tells pam_env that it should
  34. # enter in its value (overriding the default value) if there is one
  35. # to use. OVERRIDE is not used, "" is assumed and no override will be
  36. # done. 
  37. #
  38. # VARIABLE   [DEFAULT=[value]]  [OVERRIDE=[value]]
  39. #
  40. # (Possibly non-existent) environment variables may be used in values
  41. # using the ${string} syntax and (possibly non-existent) PAM_ITEMs may
  42. # be used in values using the @{string} syntax. Both the $ and @
  43. # characters can be backslash escaped to be used as literal values
  44. # values can be delimited with "", escaped " not supported.
  45. # Note that many environment variables that you would like to use
  46. # may not be set by the time the module is called.
  47. # For example, HOME is used below several times, but 
  48. # many PAM applications don't make it available by the time you need it.
  49. #
  50. #
  51. # First, some special variables
  52. #
  53. # Set the REMOTEHOST variable for any hosts that are remote, default
  54. # to "localhost" rather than not being set at all
  55. #REMOTEHOST    DEFAULT=localhost OVERRIDE=@{PAM_RHOST}
  56. #
  57. # Set the DISPLAY variable if it seems reasonable 
  58. #DISPLAY        DEFAULT=${REMOTEHOST}:0.0 OVERRIDE=${DISPLAY}
  59. #
  60. #
  61. #  Now some simple variables
  62. #
  63. #PAGER        DEFAULT=less
  64. #MANPAGER    DEFAULT=less
  65. #LESS        DEFAULT="M q e h15 z23 b80"
  66. #NNTPSERVER    DEFAULT=localhost
  67. #PATH        DEFAULT=${HOME}/bin:/usr/local/bin:/bin\
  68. #:/usr/bin:/usr/local/bin/X11:/usr/bin/X11
  69. #
  70. # silly examples of escaped variables, just to show how they work.
  71. #
  72. #DOLLAR        DEFAULT=\$
  73. #DOLLARDOLLAR    DEFAULT=    OVERRIDE=\$${DOLLAR}
  74. #DOLLARPLUS    DEFAULT=\${REMOTEHOST}${REMOTEHOST}
  75. #ATSIGN        DEFAULT=""    OVERRIDE=\@
  76.