Re: timezone for 100.chksetuid

2014-05-16 Thread J.R. Oldroyd
On Fri, 16 May 2014 16:09:37 +0100 Tom Evans  wrote:
> 
> Do you mean you are changing /etc/localtime whenever you move to
> another timezone?
> 
Yes, precisely.

> I would suggest stopping doing that! Instead just set TZ in your user
> environment to whatever TZ you want. That way, your programs will all
> be localised correctly, and scripts which run as root will remain
> consistent.
> 
Good suggestion, but that would cause those scripts run as root to be run
at the wrong time of day, cron jobs for example, or to reflect the wrong
time and timezone, e.g., sendmail timestamps, syslog messages, etc.  No
big deal for short trips, but it's not what you want on longer, extended
trips.

-jr


signature.asc
Description: PGP signature


Re: timezone for 100.chksetuid

2014-05-16 Thread Tom Evans
On Fri, May 16, 2014 at 2:53 PM, J.R. Oldroyd  wrote:
> I would like to propose that a timezone setting be possible for the
>
> src/etc/periodic/security/100.chksetuid
>
> script.  Either fix it at something like UTC, or add an rc.conf setting
> that specifies what timezone to use.  Or both, default to UTC but allow
> a timezone setting in rc.conf.
>
> Reason for this is that for folk who travel, the 100.chksetuid script
> generates and diffs "find -ls" output and this output changes if you
> change timezones and update the system timezone setting while you are
> away.  It then changes back again when you return.  If you travel a lot,
> the two timezone changes cause this script to flag every setuid file as
> having changed (twice), when all that changed is the time display.  This
> means that real changes during the same period will likely be overlooked
> and the frequent non-real diffs tend to make one likely to ignore this
> section.

Do you mean you are changing /etc/localtime whenever you move to
another timezone?

I would suggest stopping doing that! Instead just set TZ in your user
environment to whatever TZ you want. That way, your programs will all
be localised correctly, and scripts which run as root will remain
consistent.

Cheers

Tom
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"