home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / aix / 8108 < prev    next >
Encoding:
Internet Message Format  |  1992-07-23  |  1.8 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!swrinde!sdd.hp.com!caen!batcomputer!lynx.msc.cornell.edu!ransom.msc.cornell.edu!rick
  2. From: rick@ransom.msc.cornell.edu (Rick Cochran)
  3. Newsgroups: comp.unix.aix
  4. Subject: 'limits' in xdm login sessions
  5. Keywords: AIX 3.2 xdm limits
  6. Message-ID: <1992Jul23.170739.29773@msc.cornell.edu>
  7. Date: 23 Jul 92 17:07:39 GMT
  8. Sender: news@msc.cornell.edu
  9. Organization: Cornell Materials Science Center
  10. Lines: 30
  11.  
  12. Some of you may have noticed that your 'limits' are different, depending
  13. on whether your session originates with 'xdm' or not.  In our case, we
  14. cannot run the 1.2.0.6 version of xlc in an 'xdm' originated session.
  15.  
  16. As someone VERY helpfully pointed out when I inquired about this before,
  17. this is a result of the fact that 'xdm' is started in rc.local which is
  18. started by the 'init' process which does not have the same 'limits' as,
  19. for example, a 'root' login session.
  20.  
  21. The method they suggested was to hack xdm to call 'setpcred' to set the
  22. process credentials for xdm sessions.  This is doable, but requires
  23. adding an argument to a function call and is somewhat messy.
  24.  
  25. Another way to eliminate the problem is to use the following rc.local lines to
  26. invoke xdm:
  27.  
  28. if [ -f /usr/bin/X11/xdm -a -f /usr/local/xdm/xdm-config ] ; then
  29.         su root "-c /usr/bin/X11/xdm -config /usr/local/xdm/xdm-config"
  30.  
  31. This will cause all xdm sessions to get the same limits as root, which is
  32. fine in our case.
  33.  
  34. Just out of curiosity, is 'setpcred' an IBM invention?  I try to keep
  35. a positive attitude toward deviations from 'standard Unix' (whatever
  36. that is), but they do result in a certain amount of pain and boredom.
  37.  
  38. -- 
  39. |Rick Cochran          607-255-7223             rick@msc.cornell.edu|
  40. |Cornell Materials Science Center             rick@crnlmsc2.bitnet|
  41. |E20 Clark Hall, Ithaca, N.Y. 14853         cornell!msc.cornell.edu!rick|
  42.