From owner-freebsd-questions@FreeBSD.ORG Tue Sep 2 04:22:16 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 09687106564A for ; Tue, 2 Sep 2008 04:22:16 +0000 (UTC) (envelope-from adrian@gordinier.net) Received: from masterchief.gordinier.net (gordinier.net [75.127.66.238]) by mx1.freebsd.org (Postfix) with ESMTP id DC0FE8FC0C for ; Tue, 2 Sep 2008 04:22:15 +0000 (UTC) (envelope-from adrian@gordinier.net) Received: from gordinier.net (localhost [127.0.0.1]) by masterchief.gordinier.net (Postfix) with ESMTP id 7022B2820B for ; Tue, 2 Sep 2008 04:22:14 +0000 (UTC) MIME-Version: 1.0 Date: Tue, 2 Sep 2008 04:22:14 +0000 From: adrian To: freebsd-questions@freebsd.org In-Reply-To: <083ff0361f20bc08a90dab9e293478da@gordinier.net> References: <083ff0361f20bc08a90dab9e293478da@gordinier.net> Message-ID: <04d8869a228b319332bee7de39268a57@gordinier.net> X-Sender: adrian@gordinier.net User-Agent: RoundCube Webmail/0.1-rc1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Subject: Re: Locked myself out. 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, 02 Sep 2008 04:22:16 -0000 On Tue, 2008-09-02 at 03:45 +0000, adrian wrote: Hi all this is my first question on the list. > > I had been playing with securelevels and was in level 3 then I mistakenly > executed "chflags schg /etc/rc.*" > It wouldn't be such a problem but it as you guessed is on a remote server > and I could pay a local guy there to drop to single-user but I thought this > might be a good attempt at self hacking. But I am kind of a noob to FreeBSD > so I have been Googleing and pouring over Absolute FreeBSD (Good book > Thank-you Michael Lucas) looking for someway to execute a script to copy > over my rc.conf before it loads. I figured it should be possible maybe > though the /etc/rc file but I have had no luck with that. > Please HELP! > > Yeah, I did find a way myself. I was able to make a .sh file in /usr/local/etc/rc.d/ that copied a new rc.conf over the old one. Adrian