Re: Setting date with securelevel over 1

2002-11-21 Thread Brendan McAlpine
Hmmm

In my rc.conf file I have:

kern_securelevel_enable=NO

already in there and I still can't adjust the date.

Any ideas?

Brendan
On Wednesday, November 20, 2002, at 06:10 PM, Kent Stewart wrote:




Brendan McAlpine wrote:

Hey all,
Is there an easy way to set the date using the date command when 
securelevel is over 1?

The easiest is to turn it off in rc.conf and reboot, set the time, 
turn it back on and reboot. You are limited to deltas of 1 second in 
the secure mode. It doesn't take a big change before rebooting is much 
quicker. If you have a fulltime network, you can run ntp to keep it on 
time.

Kent

--
Kent Stewart
Richland, WA

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




To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Setting date with securelevel over 1

2002-11-21 Thread Brendan McAlpine
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?

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 [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Setting date with securelevel over 1

2002-11-21 Thread Kent Stewart


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 [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message




To Unsubscribe: send mail to [EMAIL PROTECTED]
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 [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Setting date with securelevel over 1

2002-11-20 Thread Brendan McAlpine
Hey all,

Is there an easy way to set the date using the date command when 
securelevel is over 1?

TIA

B


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: Setting date with securelevel over 1

2002-11-20 Thread Kent Stewart


Brendan McAlpine wrote:

Hey all,

Is there an easy way to set the date using the date command when 
securelevel is over 1?

The easiest is to turn it off in rc.conf and reboot, set the time, 
turn it back on and reboot. You are limited to deltas of 1 second in 
the secure mode. It doesn't take a big change before rebooting is much 
quicker. If you have a fulltime network, you can run ntp to keep it on 
time.

Kent

--
Kent Stewart
Richland, WA

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


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message