Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Sep 2008 04:22:14 +0000
From:      adrian <adrian@gordinier.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: Locked myself out.
Message-ID:  <04d8869a228b319332bee7de39268a57@gordinier.net>
In-Reply-To: <083ff0361f20bc08a90dab9e293478da@gordinier.net>
References:  <083ff0361f20bc08a90dab9e293478da@gordinier.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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