From owner-freebsd-questions Tue Oct 28 14:00:48 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA24588 for questions-outgoing; Tue, 28 Oct 1997 14:00:48 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from sumatra.americantv.com (sumatra.americantv.com [207.170.17.37]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA24583 for ; Tue, 28 Oct 1997 14:00:42 -0800 (PST) (envelope-from jlemon@americantv.com) Received: from right.PCS (right.PCS [148.105.10.31]) by sumatra.americantv.com (8.8.5/8.8.5) with ESMTP id QAA00218; Tue, 28 Oct 1997 16:00:18 -0600 (CST) Received: (from jlemon@localhost) by right.PCS (8.6.13/8.6.4) id PAA03709; Tue, 28 Oct 1997 15:59:46 -0600 Message-ID: <19971028155946.50910@right.PCS> Date: Tue, 28 Oct 1997 15:59:46 -0600 From: Jonathan Lemon To: Brandon Gillespie Cc: questions@freebsd.org Subject: Re: unable to rm suid binary..? References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.61.1 In-Reply-To: ; from Brandon Gillespie on Oct 10, 1997 at 02:13:30PM -0700 Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Oct 10, 1997 at 02:13:30PM -0700, Brandon Gillespie wrote: > I am unable to remove an SUID binary, howcome? Specifically... > > -r-sr-xr-x 1 root bin 196608 Jul 9 19:56 rcp* > # rm rcp > override r-sr-xr-x root/bin schg for rcp? y It's not that the binary is SUID, it's that the ``immutable'' (schg) flag is set. You'll need to turn off this flag first: chflags noschg rcp -- Jonathan