From owner-freebsd-questions Thu Jul 18 12: 7:37 2002 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 B2D2337B400 for ; Thu, 18 Jul 2002 12:07:33 -0700 (PDT) Received: from catflap.home.slightlystrange.org (host217-39-153-84.in-addr.btopenworld.com [217.39.153.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDF1843E31 for ; Thu, 18 Jul 2002 12:07:32 -0700 (PDT) (envelope-from dan@slightlystrange.org) Received: from danielby by catflap.home.slightlystrange.org with local (Exim 3.36 #1) id 17VGcX-0002vS-00 for freebsd-questions@freebsd.org; Thu, 18 Jul 2002 20:07:25 +0100 Date: Thu, 18 Jul 2002 20:07:25 +0100 From: Daniel Bye To: freebsd-questions@freebsd.org Subject: Re: permissions problem with /var/empty Message-ID: <20020718190724.GA10970@catflap.home.slightlystrange.org> Reply-To: dan@slightlystrange.org Mail-Followup-To: freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-Scanner: exiscan *17VGcX-0002vS-00*iECQ.qITth.* (SlightlyStrange.org, Using NOD32 http://www.nod32.com) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Jul 18, 2002 at 12:49:17PM -0600, Seth Hieronymus wrote: > Hello, > > I have a problem. When upgrading my openssh-portable, it fails to install > when it tries to "chmod 0700 /var/empty", which gives the error message: > Operation not permitted. The permissions on /var/empty are 0555. When I > tried to "rm -rf /var/empty", it fails with the same error message. My /var > is linked to /usr/var. I tried to chmod /usr/var/empty, but no difference. I > have stopped almost all of the services running in the background, and lsof > reports that there aren't any processes using anything in /var/empty. > > Anyone have any suggestions to remedy this? Hmm, sounds like it might be the directory's flags. Try # ls -Ldlo /var/empty and see if the flag "schg" is set. If so, unset it (chflags -RH noschg /var/empty), make your changes and reset the flag using "chflags -RH schg /var/empty". HTH Dan -- Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3D73 AF47 D448 C5CA 88B4 0DCF 849C 1C33 3C48 2CDC _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message