Solved

Transferring /var/adm/wtmpx file from one local host to another.

Posted on 1997-08-14
3
253 Views
Last Modified: 2013-12-23
I need either a shell script or a c-program that will download the file/var/adm/wtmpx from one local UNIX host and
transfer it to another host, preferably with clear explanations of what is going on. The code will be much
appreciated.
0
Comment
Question by:ee96m10
  • 2
3 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 100 total points
Comment Utility
wtmpx is in binary format and, therefore, may not be portable between several UNIXs. If you have access to your UNIX host try:

rsh host last | more

0
 

Author Comment

by:ee96m10
Comment Utility
When using rsh host last|more I get permission denied.
When I do rlogin or rsh host, I'm asked for a password and then am logged in. Is  there a shell script I can write that will
run without any interaction from the keyboard, that will use rsh?
0
 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
No!
Your administrator must grant you access. This depends on the flavour of your UNIX, for example you must have an entry in ~/.rhosts or /etc/rhosts or /etc/netgroups or /etc/hosts.{access,deny}

0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
SSH commands for Nas4free 21 295
DNS CNAME Configuration 3 47
Nic to NIC 5 43
server plus 2 42
#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now