This article is from a FAQ concerning SCO operating systems. While some of the information may be applicable to any OS, or any Unix or Linux OS, it may be specific to SCO Xenix, Open Desktop or Openserver.

There is lots of Linux, Mac OS X and general Unix info elsewhere on this site: Search this site is the best way to find anything.

Unix, Xenix and ODT General FAQ

How do I find out what IP address a user logged in from?

In OSR5, there are options to who, w, last, and finger which provide this information. In a program, you can fetch this information from /etc/utmpx; #include <utmpx.h> for the appropriate definitions.


Hate these ads?

For some earlier versions, see nwho (in tls059b). The farther back you go through older versions, the less likely you are to find this sort of information.

Current versions have these options as summarized by Bela Lubkin:

Many OpenServer Release 5 utilities can show you the host name; they just don't do so by default:

  • who -x (hostname truncated)
  • who -xu (full length)
  • who -mxu (full length; this tty)
  • w -x [user ...] (truncated)
  • w -X [user ...] (full length; 5.0.4 and later)
  • finger [-s user ...] (truncated)
  • finger -l [user ...] (full length)
  • last -W /etc/wtmpx [user] (truncated; login history)
  • last -W /etc/utmpx [user] (truncated; current)
  • last -H hostname [user] (history for "hostname", use full name even though output will be truncated)

See also Bofcusm: nwho for 5.0.x








Comments /SCOFAQ/FAQ_scotec6nwho.html


Mon Mar 28 11:27:15 2005: Subject: gss   anonymous
(your comments go here)g sf errrr 6 Żop&#9834;}



Add your comments

LOD Communications, Inc.

Enter your email address for automatic notification of new posts here
(be sure to whitelist 'feedburner.com' if you use spam filtering)

Or use any RSS reader

Delivered by FeedBurner

cartoon
Forget the expense of flying to New England. Forget hotel and meals costs.
Installation and light training Boston and New England


Views for this page
Today This Week This Month This Year  Overall
33611,940 7,780

/SCOFAQ/FAQ_scotec6nwho.html copyright 1997-2003 (various) All Rights Reserved

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

More:
       - FAQ




Unix/Linux Consultants

Your ad here - $24.00 yearly!

http://bcstechnology.net Full service Linux & UNIX systems integrator; Windows to UNIX/Linux Client-Server Specialist; Secure E-Mail & Website Hosting; Thoroughbred Software Developer; Custom Industrial Automation; Hardware & Electronics Experts; In Business Since 1985.


larryi@ccamedical.com SCO OS5, Debian Linux, RedHat Linux, MySQL, Apache, AJAX development using dXport/dL4/Unibasic, Windows Connectivity, Sharing Resouces, Automation, Shell Scripting


UBB Computer Services Support for Openserver, Unixware and Linux. Windows integration with Unix/Linux servers. Hardware, Backup and Networking issues. Located near Sacramento CA, we provide onsite support throughout Northern CA and Nationwide via remote access. We are a SCO Authorized Partner and a Microlite BackupEdge Certified Reseller.




Twitter
  • Jun 26 21:28
    Lost 5 cents at poker tonight. Hard to do with 10 and 20 cent betting..
  • Jun 23 07:01
    Hypermiling:









Change Congress

Related Posts