home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / next / sysadmin / 6618 < prev    next >
Encoding:
Text File  |  1992-11-20  |  1.5 KB  |  36 lines

  1. Newsgroups: comp.sys.next.sysadmin
  2. Path: sparky!uunet!usc!rpi!ghost.dsi.unimi.it!univ-lyon1.fr!chx400!josef!avalon.physik.unizh.ch!lytras
  3. From: lytras@avalon.physik.unizh.ch (Apostolos Lytras)
  4. Subject: Re: loginwindow hooks- ARGHHHH!!!!
  5. Message-ID: <1992Nov20.134347.9096@ifi.unizh.ch>
  6. Sender: news@ifi.unizh.ch (USENET News Admin)
  7. Nntp-Posting-Host: avalon
  8. Organization: Informatik Club d. Universitaet, Zuerich
  9. References: <1992Nov19.191653.29086@schbbs.mot.com> <1992Nov20.015714.21620@murdoch.acc.Virginia.EDU> <By08zy.Bw2@ux1.cso.uiuc.edu>
  10. Date: Fri, 20 Nov 1992 13:43:47 GMT
  11. Lines: 23
  12.  
  13. Argghhh.... root runs shellscripts!! DON'T DON'T DON'T! A shellscript
  14. that is run by root *is* a threat to the security of your system and 
  15. possibly of many other systems as well. Especially when it is supposed
  16. to run inattendedly.
  17.  
  18. Besides, your programs look like a lot of redundancy to me. Every Login
  19. and Logout gets logged (with time, connecting host etc.) in
  20. /usr/adm/wtmp. There is also information about shutdowns, reboots and
  21. crashes in that file. 
  22.  
  23. You get at least two unix programs to evaluate that file: last, ac. For
  24. details let Librarian.app show you the according man pages.
  25.  
  26. You can also search the archives (with archie) for a little piece of C
  27. code called 'rdwtmp.c' which gives you yet another view of the login
  28. data in /usr/adm/wtmp.
  29.  
  30. Cheers
  31. - A.
  32. -- 
  33.      lytras@ifi.unizh.ch           |   Apostolos Lytras
  34.      lytras@avalon.physik.unizh.ch    |   Informatik Club der Uni
  35.      lytras@amiga.physik.unizh.ch      |   Zuerich, SysAdmin
  36.