Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jul 2002 13:30:56 -0600
From:      "Seth Hieronymus" <sethh@principia.edu>
To:        <dan@slightlystrange.org>
Cc:        <freebsd-questions@freebsd.org>
Subject:   Re: permissions problem with /var/empty
Message-ID:  <OE57ieuGv8XQViddWcn000117c3@hotmail.com>
References:  <OE79yGevLUYaK8P3Pfb00029f0a@hotmail.com>

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

Thanks, that did the trick.

Seth


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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