Date: Mon, 5 Feb 2007 11:07:17 -0500 From: Bill Moran <wmoran@collaborativefusion.com> To: Alaa Alomari <alaa_alomari@yahoo.com> Cc: questions@FreeBSD.org Subject: Re: question about BSD time Message-ID: <20070205110717.456969fc.wmoran@collaborativefusion.com> In-Reply-To: <919429.12646.qm@web37312.mail.mud.yahoo.com> References: <919429.12646.qm@web37312.mail.mud.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In response to Alaa Alomari <alaa_alomari@yahoo.com>: [Please wrap your lines around 72 characters or so] > Dear sir; > I have a Unix BSD server, and i want to adjust the time of the server > so i have used the following command: > $ sudo date 0702050402 > and the output is: > Mon Feb 5 04:02:00 EET 2007 > and when typing date command again, i have got the following output: > Mon Feb 5 09:38::51 EET 2007 > so would you please, tell me how can i fix the time (note: i am using > the root) > Thank you for your attention. You are doing it correctly. Is it possible that you have something running that is changing the time? (ntp, perhaps). What happened between the time you set the time and when it reset itself? Also, check your system's securelevel setting, which will prevent manual time changes (or limit them to 1s). See the man page for date and securelevel. -- Bill Moran Collaborative Fusion Inc.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070205110717.456969fc.wmoran>