home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / ultrix / 6249 < prev    next >
Encoding:
Text File  |  1992-08-14  |  3.0 KB  |  79 lines

  1. Newsgroups: comp.unix.ultrix
  2. Path: sparky!uunet!stanford.edu!leland.Stanford.EDU!drizzle.Stanford.EDU!eillihca
  3. From: eillihca@drizzle.Stanford.EDU (Achille Hui)
  4. Subject: Re: dxsession beginner help??
  5. Message-ID: <eillihca.713826440@drizzle.Stanford.EDU>
  6. Sender: news@leland.Stanford.EDU (Mr News)
  7. Organization: DSO, Stanford University
  8. References: <1992Aug14.095847.4809@sdz01.uu.ch> <gel.713814152@zen.sys.uea.ac.uk>
  9. Date: 14 Aug 92 21:07:20 GMT
  10. Lines: 67
  11.  
  12. gel@sys.uea.ac.uk (Gareth Lee) writes:
  13. >steve@sdz01.uu.ch writes:
  14.  
  15. >>1. I have some users who should only be permitted to run a particular
  16. >>program. Normally I would replace the shell program in /etc/passwd
  17. >>with the permitted program. Unfortunately, after logging in through
  18. >>the dxprompter, "something" apparently happens (no error or warning
  19. >>message) and I am immediately returned to the login prompter. If I su
  20. >>to the user from another account, everything works as planned, but
  21. >>obviously that's not going to work.
  22.  
  23. Is that program mentioned in /etc/shells ?
  24.  
  25. >>2. With every other workstation I've ever used, I could kill the
  26. >>Xserver and work at a naked tty interface if I wanted to. So far I
  27. >>have found no way, either in the manuals or through random keystrokes,
  28. >>of doing this under Ultrix.
  29.  
  30. You don't want to do that. When no X-window is running, Ultrix
  31. console act as an extra-ordinary dumb terminal which is extremely
  32. painful to use.
  33.  
  34. >>3. Can I run X on Ultrix without dxsession? I find the whole thing
  35. >>annoying.
  36.  
  37. Honestly, dxsession isn't so annoying. The one to blame is the evil
  38. dxwm. dxsession actually hides you from some other even more annoying
  39. things ;-)
  40.  
  41. >You can change the /etc/ttys entry to run whatever you want (ie. another
  42. >window manager).  I'm not sure whether the DEC X server will operate
  43. >without dxsession since it controls the icon box also?? You could consider
  44.  
  45. The icon box is controlled by dxwm. You can start a different window
  46. manager by modifying the X-resources.
  47.  
  48. >It would be worth experimenting with replacing the -C /usr/bin/dxsession
  49. >option with -C /usr/local/bin/myscript thereby invoking a shell script
  50.  
  51. You can replace /usr/bin/dxsession to whatever you want. Just remember
  52. to duplicate two functions that dxsession has perform:
  53.  
  54. 1)    Redirect the console messages to appropriate places.
  55.     something like:
  56.         cat -u /dev/xcons
  57.     or    xconsole            should work.
  58.  
  59.  
  60. 2)    when Xprompter authenticate your login, it will then
  61.     call /usr/bin/dxsession or whatever after the -C
  62.     flags with the terminal line identifier, which is usually
  63.     :0 for the console. If you replace dxsession by anything
  64.     else, be sure to call
  65.  
  66.          /usr/lib/X11/getcons <terminal-line-identifier>
  67.         
  68.     manually. Otherwise, a bogus entry will left in /etc/utmp
  69.     which will crash a few common programs.
  70.  
  71. Another possibility is to comment out the line about :0 in /etc/ttys
  72. and start the X-servers through xdm in /etc/rc.
  73.  
  74. >>4. Can anyone point me to a usable replacement for dxdb?
  75.  
  76. No idea.
  77.  
  78. ------------------------------------achille (eillihca@drizzle.stanford.edu)
  79.