-
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

Windows XP, Vista, 8.1, Linux Knoppix, Office XP, (6 CDS)
$10.00

KNOPPIX 9.1 Linux Install & Live DVD 32bit & 64bit
$19.99

KNOPPIX USB DVD OS , BEST OF ALL HIGHLY RECOMENDED
$11.99

Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive
$5.99

Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 16G USB Stick
$20.85

Knoppix NSM 1.2
$8.00

VINTAGE SOFTWARE | KNOPPIX STD 0.1 (SECURITY TOOLS DISTRIBUTION)
$7.57

Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 32G USB Stick
$21.42

Hamshack Live DVD-ROM
$7.00

Knoppix 5.0.1 ULTRA RARE Linux DVD - Linux Pro Extra August 2006
$33.98