home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / ultrix / 8100 < prev    next >
Encoding:
Text File  |  1992-11-05  |  1.5 KB  |  45 lines

  1. Newsgroups: comp.unix.ultrix
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!sun-barr!sh.wide!wnoc-tyo-news!ccut!s.u-tokyo!kekux!apricot.kek.jp!furukawa
  3. From: furukawa@apricot.kek.jp (Kazuro Furukawa)
  4. Subject: Re: WANTED: Upon boot login a user in
  5. Message-ID: <1992Nov5.121345.13280@kekux.kek.ac.jp>
  6. Sender: news@kekux.kek.ac.jp (USENET News System)
  7. Nntp-Posting-Host: apricot
  8. Organization: National Laboratory for High Energy Physics (KEK)
  9. References: <1992Nov2.200731.6099@dale.ksc.nasa.gov>
  10. Distribution: comp
  11. Date: Thu, 5 Nov 1992 12:13:45 GMT
  12. Lines: 31
  13.  
  14. Hello,
  15.  
  16. In article <1992Nov2.200731.6099@dale.ksc.nasa.gov> rhill@dale.ksc.nasa.gov (Russ Hill) writes:
  17. >Hi,
  18. >I need a way when a decstation boots it automatically logs in a default user.
  19. >I imagine that this is a major hack or total change to Xprompter.
  20.  
  21. How about using undocumented feature of "su" command in /etc/ttys or
  22. /etc/rc?
  23.  
  24.     su - {username} -c {command}
  25.  
  26. For example, in /etc/ttys, you can specify
  27.  
  28. :0 "/bin/su - ken -c /ken/starter" none on secure window="/usr/bin/Xws"
  29.  
  30. to start X server "Xws" with command "/ken/starter" by user "ken". 
  31. You can manually start X server and commands from /etc/rc modifying 
  32. /etc/ttys as
  33. :0 none none
  34.  
  35. These set-up's are useful for a console desk of some plant.  I hope this
  36. helps.
  37.  
  38. >Russ Hill
  39. >rhill@dale.ksc.nasa.gov
  40. >(407) 633-3950
  41. -- 
  42. Kazuro Furukawa
  43. National Laboratory for High Energy Physics (KEK), Japan
  44. furukawa@kek.jp   furukawa@jpnkekvx.bitnet   kekvax::furukawa (hepnet)
  45.