From owner-freebsd-questions@FreeBSD.ORG Tue Feb 6 12:45:12 2007 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C321916A400 for ; Tue, 6 Feb 2007 12:45:12 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from mx00.pub.collaborativefusion.com (mx00.pub.collaborativefusion.com [206.210.89.199]) by mx1.freebsd.org (Postfix) with ESMTP id 7C48213C48D for ; Tue, 6 Feb 2007 12:45:12 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from vanquish.pgh.priv.collaborativefusion.com (vanquish.pgh.priv.collaborativefusion.com [192.168.2.61]) (SSL: TLSv1/SSLv3,256bits,AES256-SHA) by wingspan with esmtp; Tue, 06 Feb 2007 07:45:11 -0500 id 00056407.45C87857.00002C01 Date: Tue, 6 Feb 2007 07:45:09 -0500 From: Bill Moran To: Alaa Alomari Message-Id: <20070206074509.64af9941.wmoran@collaborativefusion.com> In-Reply-To: <178969.99902.qm@web37308.mail.mud.yahoo.com> References: <20070205110717.456969fc.wmoran@collaborativefusion.com> <178969.99902.qm@web37308.mail.mud.yahoo.com> Organization: Collaborative Fusion X-Mailer: Sylpheed 2.3.0 (GTK+ 2.10.7; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org Subject: Re: question about BSD time X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Feb 2007 12:45:12 -0000 In response to Alaa Alomari : > > Bill Moran wrote: > In response to Alaa Alomari : > > [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. > > Dear Mr. Bill Moran; > it is right, my securelevel is 2 but when i try to lower it, i get the > message operation not permitted > i did it as follow: > $sudo sysctl -w kern.securelevel=-1 > THE RESULT IS AS FOLLOW: > kern.securelevel: 2 > sysctl: kern.securelevel: Operation not permitted > So, would you please tell me how can i change the securelevel in order > to change the time and then set it (the securelevel) back. > Thank you for your attention. It is considered rude to take discussions off the mailing list unless it has been agreed upon beforehand -- I have added questions@freebsd.org back in to the CC. Additionally, top-posting is discouraged on these mailing lists. I have corrected the format and responded in-line below. Additionally, you seemed to have ignored my request to format your emails better by wrapping your lines. In any event, you can't lower the securelevel on a running system -- that would defeat the purpose. Modify the setting in /etc/rc.conf and reboot your system. -- Bill Moran Collaborative Fusion Inc.