home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / ultrix / 6570 < prev    next >
Encoding:
Internet Message Format  |  1992-08-30  |  1.9 KB

  1. Path: sparky!uunet!know!mips2!news.bbn.com!usc!sdd.hp.com!caen!batcomputer!munnari.oz.au!yoyo.aarnet.edu.au!sirius.ucs.adelaide.edu.au!iagu.itd.adelaide.edu.au!andrewr
  2. From: andrewr@iagu.itd.adelaide.edu.au (Andrew Rutherford)
  3. Newsgroups: comp.unix.ultrix
  4. Subject: Re: Service Accounts running X login
  5. Message-ID: <8371@sirius.ucs.adelaide.edu.au>
  6. Date: 30 Aug 92 05:47:28 GMT
  7. References: <1992Aug25.152709.23868@rz.uni-karlsruhe.de> <1992Aug26.124449.3475@aosg.gsf.dec.com> <BtnzB3.49K@watcgl.uwaterloo.ca> <1992Aug28.143330.11982@vela.acs.oakland.edu>
  8. Sender: news@ucs.adelaide.edu.au
  9. Reply-To: andrewr@itd.adelaide.edu.au
  10. Organization: Information Technology Division, Adelaide University, Australia
  11. Lines: 28
  12. Nntp-Posting-Host: iagu.itd.adelaide.edu.au
  13.  
  14. In article <1992Aug28.143330.11982@vela.acs.oakland.edu>, minnebo@vela.acs.oakland.edu (Brian P. Minnebo) writes:
  15.  
  16. +In article <BtnzB3.49K@watcgl.uwaterloo.ca> idallen@watcgl.uwaterloo.ca (Ian! D. Allen [CGL]) writes:
  17. +|>> Are there any possibilities to control the actions of some special accounts
  18. +|>> after the X window login ?
  19. +|>
  20. +|>You can modify the .profile or .cshrc to be a "captive" account so that all
  21. +|>that you can do is perform a shutdown or exit.
  22. +|
  23. +|No you cannot.  A user logging in can hit BREAK at just the right
  24. +|point to cause the .profile or .cshrc to be skipped, allowing a normal
  25. +|unrestricted login shell.  Don't do this.
  26. +
  27. +or worse, they can su to the account, which wont execute .profile.
  28.  
  29.     Don't put it in a .profile then. Make the login shell the actual
  30. program you want them to run, maybe a C program that calls it if
  31. you've got multiple commands or lots of options. Even a shell script is
  32. do-able, as the standard "race condition" problem doesn't apply.
  33.  
  34. Cya,
  35.     Andrew.
  36.  
  37. /*
  38.  * Andrew Rutherford                 andrewr@itd.adelaide.edu.au
  39.  * +61 8 228 5669            Real Programmers always confuse Christmas and
  40.  * Room 1060, Adelaide Uni      Halloween because OCT 31 == DEC 25 !
  41.  */
  42.