Operating System - Linux
1828243 Members
2689 Online
109975 Solutions
New Discussion

Re: Time Settings in Linux Domain

 
Dushyant Tyagi
Occasional Advisor

Time Settings in Linux Domain

Hi all
i m having Radhat linux 7.3 domain. i m
facing the problem at client End. all
clients r not showing the right time . all r
showing 5:30 pm and Doamin is showing 9:32.

what should i do????
plz help me

thanks
DUSHYANT
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: Time Settings in Linux Domain

as root

chkconfig -level 12345 ntpd on

On a server

find an outside ntp time source
open up port 110 on the firewall

edit /etc/ntp.conf

put the time source in there.

service ntpd start

On the clients:

chkconfig -level 12345 ntpd on


set the servers ip as the source in /etc/ntp.conf

service ntpd start

Done. It may take a few hours for the times to come in synch

Test with

ntpq -p

on each node.

SEP

Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Roberto Polli
Trusted Contributor

Re: Time Settings in Linux Domain

Hi Dushyant.
To set up client time you have 2 choiches:
1) ntpdate:
it's a mere command which you have to issue (you can put in cron if machine is always on or put once at boot if machine should be shut down daily): basic syntax is
#ntpdate servername
where servername is the name of an ntp server (search on google pls)

2) ntpd:
make your machine a ntp server which uses other servers to set up its hour.
it's a bit more work. You can read
#man ntp.conf
which is config files.


Using KDE you can configure it interactively clichking on clock and giving root passwd.


Dushyant, from your profile I see that you never assigned points to the answers you've been given. Pls. do it: it's needed to stimulate people to answer...

Peace, R.

Dushyant Tyagi
Occasional Advisor

Re: Time Settings in Linux Domain

Thanx a lot to Peace and SEP . it is
working now.


Thanx once again
Dushyant
Ragu_3
Trusted Contributor

Re: Time Settings in Linux Domain

Using the ntp-server package under Debian, you can configure it to make it broadcast the exact time on the subnet. Sort of getting to sync all the clients from the mother-ship, eh....
Debian GNU/Linux for the Enterprise! Ask HP ...
Marco Di Ianni
Frequent Advisor

Re: Time Settings in Linux Domain

No Steven, the 110 port is for mail pop3 service, the NTP port is 123!

By!