From owner-freebsd-questions@FreeBSD.ORG Fri Nov 18 16:31:27 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 AA5BE16A421 for ; Fri, 18 Nov 2005 16:31:27 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id B072F43D60 for ; Fri, 18 Nov 2005 16:31:17 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from [192.168.2.2] ([69.27.149.254]) by ezekiel.daleco.biz (8.13.1/8.13.1) with ESMTP id jAIGVAGc068143; Fri, 18 Nov 2005 10:31:11 -0600 (CST) (envelope-from kdk@daleco.biz) Message-ID: <437E01C9.50209@daleco.biz> Date: Fri, 18 Nov 2005 10:31:05 -0600 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20051026 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Robert Ftizpatrick References: <1132321525.30630.3.camel@columbus.webtent.org> <44wtj6m2kz.fsf@be-well.ilk.org> <1132326705.30630.7.camel@columbus.webtent.org> <437E1478.8040501@oxygen.az> <437DFA2F.6090205@ywave.com> <1132330095.30630.16.camel@columbus.webtent.org> In-Reply-To: <1132330095.30630.16.camel@columbus.webtent.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Micah , Tofik Suleymanov , Lowell Gilbert , FreeBSD Subject: Re: Override prompt when deleting a file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Nov 2005 16:31:27 -0000 Robert Ftizpatrick wrote: >On Fri, 2005-11-18 at 07:58 -0800, Micah wrote: > > >>>>>>I'm logged in to my FreeBSD 5.2.1 box as 'admin' via ssh, why would I >>>>>>receive this override prompt? >>>>>> >>>>>>-bash-2.05b$ ls -la massage.xls >>>>>>-rw-r--r-- 1 admin admin 4463104 Aug 29 17:25 massage.xls >>>>>>-bash-2.05b$ rm massage.xls >>>>>>override rw-r--r-- admin/admin for massage.xls? >>>>>> >>>>>> >>>>>> >>>>>Check the permissions on the directory? >>>>> >>>>> >>>>-bash-2.05b$ ls -la >>>>total 460441 >>>>drwxr-xr-x 18 admin admin 1024 Nov 18 08:38 . >>>>drwxr-xr-x 5 admin admin 512 Jan 4 2005 .. >>>> >>>> >>>> >>To original poster: is the immutable bit set on the file? >> >> > >I don't believe so...is this how you tell? > >-bash-2.05b$ ls -lo massage.xls >-rw-r--r-- 1 admin admin - 4463104 Aug 29 17:25 massage.xls > > see chflags(1). Most likely it is. If you really want the file gone, (as root*): #chflags noschg massage.xls #rm massage.xls HTH, KDK *admin is _also_ a UID 0 account? Seems that could be dangerous?