Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: xyzzy@u.washington.edu (Trent Piepho)
Subject: Re: Running 'clock -Ar' each time a user logs in
Date: 1998/01/04	[thread overview]
Message-ID: <68mlgu$pv2$1@nntp6.u.washington.edu> (raw)
In-Reply-To: 68mcps$6lh$2@nntp2.ba.best.com


In article <68mcps$6lh$2@nntp2.ba.best.com>,
Steve O'Sullivan <sos@best.com> wrote:
>I am trying to get my clock calibrated and run each time a user logs in. Is 
>this feasible? How might I accomplish this?

That's rather a pain to do.  clock needs to run as root, so you would have to
make it suid.  But clock isn't supposed to be suid, so you shouldn't do that. 
Rather than having clock run when somone logs in, why not put it in your
crontab?  I have a line like this in root's crontab to adjust my clock every
hour:

0 * * * *       /sbin/clock -a
-- 
|Gazing up to the breeze of the heavens \ on a quest, meaning, reason  |
|came to be, how it begun \ all alone in the family of the sun         |
|curiosity teasing everyone \ on our home, third stone from the sun.   |
|Trent Piepho (xyzzy@u.washington.edu)                   -- Metallica  |



      reply	other threads:[~1998-01-04  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-03  5:00 Running 'clock -Ar' each time a user logs in Steve O'Sullivan
1998-01-04  5:00 ` Trent Piepho [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox