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