Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Nov 2002 10:12:04 -0800
From:      Kent Stewart <kstewart@owt.com>
To:        Brendan McAlpine <bmcalpine@macconnect.com>
Cc:        Matthew Seaman <m.seaman@infracaninophile.co.uk>, questions@FreeBSD.ORG
Subject:   Re: Setting date with securelevel over 1
Message-ID:  <3DDD21F4.2@owt.com>
References:  <5A7F3C98-FD7B-11D6-9948-000393012742@macconnect.com>

next in thread | previous in thread | raw e-mail | index | archive | help


Brendan McAlpine wrote:
> It returns securelevel -1 but when I run
> 
> date -v +1H
> 
> It displays the correct date only immediately after that command.  If I 
> type in date right after that the time returns to the wrong time, one 
> hour behind the real time.
> 
> Could it be a daylight savings setting someplace?

Do a man date. The -v adjusts it but doesn't set it. The only examples 
for actually setting the date are

      The command:

            date 8506131627

      sets the date to ``June 13, 1985, 4:27 PM''.

      The command:

            date 1432

      sets the time to 2:32 PM, without modifying the date.

Kent

> 
> Any other ideas?
> 
> Brendan
> On Thursday, November 21, 2002, at 12:47 PM, Matthew Seaman wrote:
> 
>> On Thu, Nov 21, 2002 at 12:32:25PM -0500, Brendan McAlpine wrote:
>>
>>> Hmmm
>>>
>>> In my rc.conf file I have:
>>>
>>> kern_securelevel_enable="NO"
>>>
>>> already in there and I still can't adjust the date.
>>
>>
>> What does
>>
>>     sysctl kern.securelevel
>>
>> return?  If it's not '-1' then either you need to reboot to bring that
>> rc.conf setting into effect or you need to work out what is overriding
>> the usual mechanisms for setting securelevel in your boot process.
>>
>>     Cheers,
>>
>>     Matthew
>>
>> -- 
>> Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
>>                                                       Savill Way
>>                                                       Marlow
>> Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
>>
>> To Unsubscribe: send mail to majordomo@FreeBSD.org
>> with "unsubscribe freebsd-questions" in the body of the message
>>
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 
> .
> 


-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DDD21F4.2>