From owner-freebsd-questions Sat Nov 25 18: 3:47 2000 Delivered-To: freebsd-questions@freebsd.org Received: from seed.pacific.net.sg (seed.pacific.net.sg [203.120.90.77]) by hub.freebsd.org (Postfix) with ESMTP id 075D137B4CF for ; Sat, 25 Nov 2000 18:03:43 -0800 (PST) Received: from pop2.pacific.net.sg (pop2.pacific.net.sg [203.120.90.86]) by seed.pacific.net.sg with ESMTP id eAQ23cJ13936; Sun, 26 Nov 2000 10:03:38 +0800 (SGT) Received: from pacificnet (spoff107.pacific.net.sg [203.120.95.107]) by pop2.pacific.net.sg with SMTP id KAA23386; Sun, 26 Nov 2000 10:03:37 +0800 (SGT) Message-ID: <002401c0574d$21be6cc0$6b5f78cb@pacificnet> From: "James Lim" To: , Cc: References: <20001126015843.9153.qmail@hyperreal.org> Subject: Re: can't chflags/mv current kernel Date: Sun, 26 Nov 2000 10:03:54 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi there, Sorry dude, i have fergotten to advice u to edit rc.conf =/ apologies Regards, James Lim ----- Original Message ----- From: To: Cc: Sent: Sunday, November 26, 2000 9:58 AM Subject: Re: can't chflags/mv current kernel > Dima Dorfman wrote: > > securelevel >= 1. See init(8) for details. > > Ah, ok, thanks. > This definitely should go in the handbook. > But, following the advice of James Lim, > > # sysctl -w kern.securelevel=-1 > kern.securelevel: 2 > sysctl: kern.securelevel: Operation not permitted > > Seems like changing it after the boot is not an option. > > > How did you get to single user mode? Did you get there by booting the > > kernel with the -s flag, or by using shutdown? In case of the former, > > it should work. In case of the latter, you should try the former. > > The latter. Trying the former, I get a different failure: > > # sysctl -w kern.securelevel=-1 > kern.securelevel: -1 -> -1 > # make install > chflags noschg /kernel > chflags: /kernel: Read-only file system > *** Error code 1 (ignored) > mv /kernel /kernel.old > mv: rename /kernel to /kernel.old: Read-only file system > *** Error code 1 > > > For the sake of the archives, setting kern_securelevel to -1 in > > /etc/rc.conf should also work if you can't get to single user mode (no > > console access). Just remember to change it back when you're done. > > OK, I rebooted normally, edited rc.conf, rebooted again (shutdown -r now), > and the 'make install' proceeded without error. Edited rc.conf again, > rebooted, and all is well. Thank you for the prompt advice! > > -M. > > > 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