set unix time via samba - SOLUTION

Jodok Sutterluety js at
Thu Aug 7 06:50:35 GMT 1997

hi samba users,

thanx for giving me some hints about the sync. problem.

i thought there must be an easy solution to this 'problem'.
after doing some shell programming i got this:

date -s "`smbclient -L <machine-name> 
  | grep "Server time"
  | cut -f4-9 -d" "`"

notice: this may be not the best solution but so far it works

keep sambaing!

More information about the samba mailing list