From owner-freebsd-questions Sat Oct 21 6:31: 0 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mta01-svc.ntlworld.com (mta01-svc.ntlworld.com [62.253.162.41]) by hub.freebsd.org (Postfix) with ESMTP id 90A5837B4CF for ; Sat, 21 Oct 2000 06:30:57 -0700 (PDT) Received: from parish ([62.255.97.4]) by mta01-svc.ntlworld.com (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP id <20001021133055.RCNG16640.mta01-svc.ntlworld.com@parish>; Sat, 21 Oct 2000 14:30:55 +0100 Received: (from mark@localhost) by parish (8.11.0/8.11.0) id e9LDUGG00350; Sat, 21 Oct 2000 14:30:16 +0100 (BST) (envelope-from mark) Date: Sat, 21 Oct 2000 14:30:16 +0100 From: Mark Ovens To: Dima Dorfman Cc: Eric Osterweil , questions@freebsd.org Subject: Re: Why does chflags cause make install to fail? Message-ID: <20001021143016.A255@parish> References: <20001021014435.B258@parish> <20001021034844.EEB7E1F1F@static.unixfreak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <20001021034844.EEB7E1F1F@static.unixfreak.org>; from dima@unixfreak.org on Fri, Oct 20, 2000 at 08:48:44PM -0700 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Oct 20, 2000 at 08:48:44PM -0700, Dima Dorfman wrote: > [ Charset ISO-8859-1 unsupported, converting... ] > > On Fri, Oct 20, 2000 at 03:41:19AM +0000, Eric Osterweil wrote: > > > > > > > > > I needed to recompile my kernal (to enable natd) in freeBSD 4.1.1-stable, > > > and when I run make install I get an error telling me that the "chflags > > > noschg /kernal" command is not allowed. Then the "mv /kernal /kernal.old" > > > fails and dumps the install process. > > > > > > I cannot find any reference to this on the freeBSD.org site. I also tried > > > to run "chflags nouchg /kernal", but it also fails. Is there something else > > ^^^^^^ > > > > Is this a typo? it should be ``noschg''. > > I think he really meant nouchg. It shouldn't be set on /kernel, but I > guess he wanted to make sure. He said he already tried unsetting > noschg in the previous paragraph. > > > chflags(1) will only work if you are root, you are not trying to run > > it as a normal user are you? > > Chflags works just fine as a normal user: > I meant in the context of /kernel. > dima@lambda% id > uid=1000(dima) gid=100(users) groups=100(users), 0(wheel) > dima@lambda% touch test > dima@lambda% chflags uchg test > dima@lambda% rm -f test > rm: test: Operation not permitted > dima@lambda% chflags nouchg test > dima@lambda% rm test > > You certainly can't (un)set schg as a regular user, but most flags can > be (un)set by the owner. See `man 1 chflags` for details. > > Regards > > -- > Dima Dorfman > Finger dima@unixfreak.org for my public PGP key. > > "If you understand everything, you must be misinformed." > -- Japanese Proverb -- 4.4 - The number of the Beastie ________________________________________________________________ 51.44°N FreeBSD - The Power To Serve http://www.freebsd.org 2.057°W My Webpage http://ukug.uk.freebsd.org/~mark mailto:marko@freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message