-
Senior Member
registered user
--First of all, you should run ' /usr/sbin/tzconfig ' and set your local timezone.
--The ONLY person who should be updating the machine's clock, is ROOT. Don't give out sudo permissions to just anyone - restrict it to maybe 1-2 other people at the most.
--Here is a copy of the script I use; you should be OK with running the script about once a month. Unless your CMOS battery is dying or something, you really --don't-- need to sync the time all that often.
BEGIN /root/bin/timesync
Code:
#!/bin/sh
date
ntpdate -s pool.ntp.org
date
#ntp1.linuxmedialabs.com
# pool.ntp.org
# ntp1.tummy.com - CO
# louie.udel.edu - DElwr
# ntp.shorty.com - GA
# inetd's timeserver is port 37; use ' rdate p233 '
--Once you have your "master server's" time set, you can edit its /etc/inetd.conf and uncomment the following lines:
Code:
daytime stream tcp nowait root internal
daytime dgram udp wait root internal
time stream tcp nowait root internal
time dgram udp wait root internal
--Then, if you need to, ' /etc/init.d/inetd start ' on the server as root. This should shed some light on the comment at the end of the above script; if you have inetd running with those services, you can go to another computer on the network (running Linux of course) and just ' rdate insert-name-of-internet-connected-box-here '. You may have to ' apt-get install rdate ' on the client(s); I forget if it comes on the live-cd.
--The nice thing about this is that only the master server needs to be updated via ntp; the other clients can then set their time from it using rdate.
--However, I wouldn't leave inetd running unless you have to; it opens up ports. I only start it when I need it, personally.
--Best wishes.

Originally Posted by
Cuddles
Markus,
Sorry to say, nope, dial-up connection only - so the auto-start on boot time adjust isn't going to work...
So, the querry still stands, how and where do I place a shell script that can be accessed by any user. Permissions have already been set for all my users to run the script, and sudo has been enabled on these users as well...
Cuddles
Similar Threads
-
By riechert in forum General Support
Replies: 0
Last Post: 06-24-2004, 07:43 PM
-
By riechert in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 06-24-2004, 06:41 AM
-
By evirus in forum General Support
Replies: 7
Last Post: 05-07-2004, 10:46 PM
-
By lmd in forum General Support
Replies: 0
Last Post: 02-13-2004, 12:18 AM
-
By LordHarshmage in forum General Support
Replies: 1
Last Post: 05-06-2003, 08:28 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

(New) AMD Ryzen 7 5700X 8 Core 16 Thread AM4 Unlocked 3.4 GHz CPU OEM Tray
$174.99

HP ZBook Firefly 14" G8 Mobile Workstation i5 11th Gen 16GB RAM 256 GB SSD No AC
$184.99

SGIN 17.3" Laptop Intel Quad-Core Up to 2.4 GHZ 8GB RAM 256GB SSD HD
$229.99

Dell Optiplex 7050 Micro Core i5-7500 8 GB RAM 256GB SSD Microsoft Windows 11
$89.99

Intel Xeon E5 - 2667V2 / SR19W 3.30GHz 25MB 8-Core CPU Socket LGA2011
$30.00

AMD Ryzen 7 9800X3D 8-Core 16-Thread AM5 CPU Processor Brand New Unused
$395.95

AMD FX 8350 8-CORE 4.00GHz CPU FD8350FRW8KHK SOCKET AM3+ *QTY
$39.99

AMD Ryzen 7 9700X 8-Core 16-Thread 40MB Cache Socket AM5 9000 Series Processor
$245.99

Dell T7810 Workstation 8-Core 2.40GHz E5-2630 v3 No RAM GPU HDD OS
$259.98

Home Assistant Server | 8GB RAM | 128GB SSD | Intel i5 Quad-Core | Dell OptiPlex
$159.99