[buug] Don't work "net time set"

Michael Paoli Michael.Paoli at cal.berkeley.edu
Thu Jul 10 00:47:49 PDT 2008


net time set -S SERVER
sounds more like a Microsoft Windows/DOS command than a
UNIX/BSD/Linux/... command.
Is that being executed under (Free)BSD?

The diagnostics would seem to suggest that date(1) is being handed
options and/or arguments in a format it's not expecting.
If the net command is some script (e.g. shell, perl) one should
be able to trace what it's doing fairly easily.  If it's a
binary, strace/truss/tusc - or whatever FreeBSD may have of
equivalent functionality may be quite useful (most notably
by following child processes, and noting what gets passed as
options and arguments to execve(2)).

Also, kerberos will typically fail where clocks differ too
much - e.g. system times differ by more than 15 minutes.
I'm not sure exactly how that works on Microsoft Windows with
timezones and all that.  For Unix/Linux/BSD, it's the system time
(time(2)) that matters in that regard.

The date commands on Unix/Linux/BSD and Microsoft Windows/DOS are quite
different, and in the case of options/arguments, expect quite different
data.  Perhaps the date command being called isn't the intended one.

"No such file or directory" - perhaps it's not located at /bin/date?
That would be somewhat atypicaly, given date(1)'s relative importance
on Unix/Linux/BSD.  Perhaps it's located at /usr/bin/date - that would
be the case for some flavors (e.g. Solaris, at least typically).

Quoting asd sdf <dragon42 at mail.ru>:

> Hello All.
> I have installed FreeBSD 6.2 release and Samba 3.0.30 over it.
> When I'm trting to get Kerberos ticket ("kinit aranel at KOLOS.LOCAL"
> (KOLOS.LOCAL - w2K3 domain)), i've get a message "Clock skew too great".
> Well, i'm executing "net time set -S SERVER" and the answer is:
> "date: illegal time format 
> usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
> 
> [-f fmt date | [[[[[cc]yy]mm]dd]HH]MM[.ss]] [+format] 
> /bin/date 070410372008.53 failed. Error was (No such file or directory)"
> What's wrong (google doesn't help)?



More information about the buug mailing list