home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / ultrix / 9149 < prev    next >
Encoding:
Internet Message Format  |  1993-01-03  |  1.3 KB

  1. Path: sparky!uunet!noc.near.net!hri.com!spool.mu.edu!olivea!charnel!rat!zeus!gauss.elee.calpoly.edu!mbelshe
  2. From: mbelshe@gauss.elee.calpoly.edu (Mike Belshe)
  3. Newsgroups: comp.unix.ultrix
  4. Subject: Re: "null" entries in sulog?
  5. Message-ID: <1993Jan03.084843.197323@zeus.calpoly.edu>
  6. Date: 3 Jan 93 08:48:43 GMT
  7. References: <BzxM2q.5Hx@unix.amherst.edu>
  8. Sender: news@zeus.calpoly.edu
  9. Organization: CalPoly
  10. Lines: 33
  11.  
  12. Tim Pierce writes:
  13. >Every now and again, I see an entry like the following in
  14. >/usr/adm/sulog.
  15. >
  16. >> SU:  /dev/ttyp0 Sat Dec 26 01:47:54 1992
  17. >
  18. >Does anyone know what might cause the null username field entry?  On a
  19. >couple of occasions, this has actually appeared as "SU: (null)" (as if
  20. >a printf statement were passed a char pointer to NULL for the userid).
  21. >I find this a little worrying, especially as I'm one of the only
  22. >people on the system who su's in wee hours of the morning and last
  23. >night I was en route to Boston.
  24.  
  25. This will happen whenever the user that is executing 'su' is not
  26. associated with a tty (i.e. not listed in utmp).
  27.  
  28. I can do this very easily.  For example,
  29.    % rsh machineb sh
  30.    su
  31.  
  32. Now, the rsh runs an 'sh' for me, but does not give me a tty.
  33. Then, when I execute the su, I will get a "(null)" entry in 
  34. sulog.
  35.  
  36. Hope this helps,
  37.  
  38. Mike
  39. ---
  40.  
  41. Mike Belshe
  42. mbelshe@gauss.elee.calpoly.edu
  43. EL/EE System Administrator
  44. Cal Poly San Luis Obispo
  45.