home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / sun / admin / 8567 < prev    next >
Encoding:
Internet Message Format  |  1992-11-22  |  1.5 KB

  1. Xref: sparky comp.sys.sun.admin:8567 comp.unix.admin:6326 comp.unix.programmer:5398 comp.unix.wizards:4842
  2. Path: sparky!uunet!gatech!rutgers!ub!acsu.buffalo.edu!sivap-s
  3. From: sivap-s@acsu.buffalo.edu (Suresh .S)
  4. Newsgroups: comp.sys.sun.admin,comp.unix.admin,comp.unix.programmer,comp.unix.wizards
  5. Subject: Re: determining if anyone else is logged on
  6. Message-ID: <By4wp0.CE1@acsu.buffalo.edu>
  7. Date: 22 Nov 92 20:24:35 GMT
  8. References: <1992Nov21.210930.10348@mcs.drexel.edu>
  9. Sender: nntp@acsu.buffalo.edu
  10. Followup-To: comp.sys.sun.admin,comp.unix.admin,comp.unix.programmer,comp.unix.wizards
  11. Organization: UB
  12. Lines: 18
  13. Nntp-Posting-Host: hadar.cs.buffalo.edu
  14. X-Newsreader: TIN [version 1.1 PL7]
  15.  
  16. Steven Myrtle (usmyrtle@mcs.drexel.edu) wrote:
  17. : What's the best way under SunOS 4.1.x to determine if anyone besides
  18. : the owner of the console is logged onto the machine?  Searching the
  19. : utmp file?  Searching the process table?  (My program will be setuid
  20. : root, so that is an option, although I would prefer a simpler
  21. : solution.)  Other suggestions are greatly welcomed?
  22.  
  23. Searching utmp, is not  a foolproof idea, because  opening a xterm  as
  24. "xterm -ut" will not create a utmp entry.
  25.  
  26. What exactly  do  you mean  by  "logged",  is  it  a login  session or
  27. somebody remotely running a process in your machine ?
  28.  
  29.  
  30. -- 
  31. Suresh Sivaprakasam                    
  32. Department of Computer Science,    SUNY Buffalo,    Amherst,   NY - 14260-0001
  33. Internet :sivap-s@cs.Buffalo.EDU               Bitnet : sivap-s@SUNYBCS.BITNET
  34.