From owner-freebsd-questions@FreeBSD.ORG Sun Nov 27 05:30:15 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D41116A41F for ; Sun, 27 Nov 2005 05:30:15 +0000 (GMT) (envelope-from jayesh.freebsdlist@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id A50D943D5C for ; Sun, 27 Nov 2005 05:29:49 +0000 (GMT) (envelope-from jayesh.freebsdlist@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so725605wxc for ; Sat, 26 Nov 2005 21:29:45 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=Sy+2awznVibAmODLUnuiEwi0B7/eBHBMEB3OWB/LhHFX8Q+oz2GTFCFf6Z4sOF0ykWtt5V79nyKNRPB4vBZKywKP8tGTh5WZPvHRB1KY7ySCtawxWtKmd5IMDNNf3y5w44XloncjospCXJmla6oLZZyv0yKNGeNCMjXAVygMFvI= Received: by 10.70.132.19 with SMTP id f19mr8894175wxd; Sat, 26 Nov 2005 21:29:45 -0800 (PST) Received: by 10.70.7.2 with HTTP; Sat, 26 Nov 2005 21:29:45 -0800 (PST) Message-ID: Date: Sun, 27 Nov 2005 10:59:45 +0530 From: Jayesh Jayan To: Alex Zbyslaw In-Reply-To: <43882EC1.4010408@dial.pipex.com> MIME-Version: 1.0 References: <43882EC1.4010408@dial.pipex.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: inetd.conf becomes blank after reboot 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: Sun, 27 Nov 2005 05:30:15 -0000 Hi Alex, I have set the flags for the file. I hope this helps. On 11/26/05, Alex Zbyslaw wrote: > > Jayesh Jayan wrote: > > >Hi, > > > >On some of the machine where I have FreeBSD 5.4, /etc/inetd.conf becomes > a > >blank file soon after reboot. > > > >I have kept a copy of the file and when the service fails after reboot I > >restore the backup and restart the inetd service. > > > >What I need to check, to solve this issue. How can this be solved > >permanently ? Please also let me know the logs which I can check to find > the > >exact issue. > > > I'm afraid that the most likely cause is something *you* did. Nothing > in the system would deliberately remove that file, and if it is > happening because of some misconfiguration then nothing would appear in > a log file. > > Two things to try: > > 1) Find references in /etc and /usr/local/etc to inetd.conf. These > are the likely places to find the problem. > > find /etc /usr/local/etc -type f -exec egrep -H inetd {} \; > > 2) Compare /etc and /usr/local/etc on the failing machines with the > ones on good machines. > > > Changing the flags on /etc/inetd.conf to prevent it being blanked should > work around the symptoms, but not the cause. This should work: > > chflags schg /etc./inetd.conf > > But if you run in secure mode you'll need to go down to single-user to > get rid of the flag, and you can't edit inetd.conf with the flag in place= . > > --Alex > > > > -- Jayesh Jayan "The box said "Requires Windows 95, NT, or better", so I installed Linux." Visit my homepage @ http://www.jayeshjayan.com