Solved

how to change another server's date remotely?

Posted on 1997-11-12
2
246 Views
Last Modified: 2010-04-21
(1) Is it possible to change another server's (S1) date from server (S2) on a WAN?

(2) It seems the timed daemon works only on LAN and I've not been successfully with the following command as well.

rsh S2 -l root "date 1112231197".

I have included the following line in .rhosts in /home/usr1 in S2 for the rsh command.  Am I supposed to include the following line in .rhosts in root's home?  Where exactly?
 
192.1.1.222 root


I'm using AIX 4.1 on IBM RS/6000.
0
Comment
Question by:Rita060297
2 Comments
 
LVL 1

Accepted Solution

by:
rjhoward earned 50 total points
ID: 2007750
Rita:

You should have a .rhosts file in the / directory, and its mode should be either 400 or 600.

Here are other things to check:

1. Check to see that rshd is running on the target node.

2. Check to see that the target host name gets properly resolved.  If you ping S2, ping should return the IP address of S2.  To dodge the name resolution issue altogether, use the IP address in your rsh command, instead of the host name.

2. Check to see that you can telnet to the target node across the WAN.

Good luck.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 2007751
why not using timed?
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

749 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