paul on Fri, 2 Nov 2001 19:00:12 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] [linux] Shell script madness (fwd)


> I have a shell script to start up Chrony, the clock-align utility.
> The script is pretty simple:
> 
> #! /bin/bash
> cat <<EOF | /usr/local/bin/chronyc
> password blablabla
> online
> EOF
> 
> "blablabla" is the root password. "chronyc" (the client) requires
> root privileges in its communications with "chronyd" (the daemon).
> 
> That's all good and fine.

I can't believe that you need to put root's password in there! Anyway,
systems should handle time synchronization automatically. One way to
use your script automatically, and more securely, is to use cron to
execute it.

______________________________________________________________________
Philadelphia Linux Users Group       -      http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug