home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!lrw.com!leichter
- From: leichter@lrw.com (Jerry Leichter)
- Newsgroups: comp.os.vms
- Subject: re: Location of Login question.
- Message-ID: <9211170450.AA00148@uu3.psi.com>
- Date: 17 Nov 92 03:18:42 GMT
- Sender: usenet@ucbvax.BERKELEY.EDU
- Organization: The Internet
- Lines: 40
-
-
- Is there a way to determine if a user is logged in from a hardwire, or
- is dialing in from home? If so how? Does this depend if your system
- is set up to allow this, or is it an natural part of the VMS os?
-
- Usually, the answer is yes. But ultimately it depends on the configuration.
-
- The theoretically correct way is to check the identifiers held by the
- process. A local process will have the LOCAL identifier; a dialup process
- will have the DIALUP identifier. However, a SET HOST process will have the
- REMOTE identifier whatever the process it is SET HOST from may be.
-
- A simpler check - which VMS ultimately relies on to decide about the LOCAL and
- DIALUP identifiers - is to see whether the command terminal has the DIALUP
- characteristic set. This won't work through a SET HOST process either. (In
- fact, there is no really easy way to figure out what the ultimate source of
- a SET HOST process is.)
-
- All of these assume that your ports are set up properly. For ports directly
- on the VAX, it means setting them up the appropriate permanent terminal
- parameters at boot time. For ports on LAT servers, it means setting things
- up correctly on the server - the LAT protocol can pass this information
- through if the server has it. (Some old LAT servers may not support this;
- I'm not sure.)
-
- For TCP/IP based servers, there is no mechanism to pass this information;
- every connection will just look like a REMOTE connection.
-
- If terminals are connected through a port selector with its own modems,
- it may be impossible to tell how a given line terminates. But that's rare
- these days.
-
- In summary: In almost all cases, you can with assurance determine that a
- line is locally connected, if you've set up your system appropriately.
- However, there are many ways for a "line" not to be locally connected. There
- is no sure way of knowing which connections ultimately trace back to local
- connections, and which represent some kind of dialup connection.
-
- -- Jerry
-
-