*BSD News Article 89437


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!lucy.swin.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!news.ececs.uc.edu!news.kei.com!news.mathworks.com!news.sprintlink.net!news-peer.sprintlink.net!news-pull.sprintlink.net!news.sprintlink.net!news-stk-11.sprintlink.net!news.onramp.net!usenet
From: Dave Littell <dlittell@onramp.net>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: can't move /kernel
Date: Sun, 16 Feb 1997 21:31:31 -0600
Organization: We don't need no steenkin' organization!
Lines: 31
Message-ID: <3307D113.2E64@onramp.net>
References: <32FF806E.41C67EA6@zxcv-pc.jumpnet.com> <3302D04D.1667@visigenic.com> <5dvht8$6gt@synge.maths.tcd.ie>
NNTP-Posting-Host: ppp3-20.dllstx.onramp.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.01 (Win95; I)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:35664

David Malone wrote:
> 
> Tim O'Neil <toneil@visigenic.com> writes:
> 
> >Curt Finch wrote:
> >>
> >> why can't i do this?  i booted off of kernel.new
> >>
> >> # mv kernel kernel.old
> >> mv: rename kernel to kernel.old: Operation not permitted
> >> # id
> >> uid=0(root) gid=0(wheel) groups=0(wheel), 2(kmem), 3(sys), 4(tty),
> >> 5(operator), 20(staff), 31(guest)
> >> # uname -a
> >> FreeBSD pnk.com 2.1.5-RELEASE FreeBSD 2.1.5-RELEASE #1: Mon Feb 10
> >> 13:19:32 CST 1997     curt@pnk.com:/usr/src/sys/compile/CURT  i386
> >> #
> 
> >su to root first helps. alot.
> 
> His uid is zero - he is root. He should check the
> man page for chflags - Its a common catch in FreeBSD.
> 
>         David.

He probably used "make install" to build and place a new kernel instead 
of the more traditional "make; cp /kernel /kernel.old; cp kernel 
/kernel".  "make install" jerks with the flags and thus forces you to 
keep doing "make install".  Nice little trap.

Dave