From owner-freebsd-questions@FreeBSD.ORG Fri Nov 18 19:53:50 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 8783616A41F for ; Fri, 18 Nov 2005 19:53:50 +0000 (GMT) (envelope-from joost@jodocus.org) Received: from bps.jodocus.org (f173243.upc-f.chello.nl [80.56.173.243]) by mx1.FreeBSD.org (Postfix) with ESMTP id C1FCF43D45 for ; Fri, 18 Nov 2005 19:53:49 +0000 (GMT) (envelope-from joost@jodocus.org) Received: from jodocus.org (localhost [127.0.0.1]) by bps.jodocus.org (8.13.3/8.13.1) with ESMTP id jAIJrmoN048992; Fri, 18 Nov 2005 20:53:48 +0100 (CET) (envelope-from joost@jodocus.org) Received: (from joost@localhost) by jodocus.org (8.13.3/8.13.1/Submit) id jAIJrlIw048991; Fri, 18 Nov 2005 20:53:47 +0100 (CET) (envelope-from joost) Date: Fri, 18 Nov 2005 20:53:47 +0100 From: Joost Bekkers To: Robert Ftizpatrick Message-ID: <20051118195347.GA47688@bps.jodocus.org> Mail-Followup-To: Joost Bekkers , Robert Ftizpatrick , FreeBSD 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> <437E01C9.50209@daleco.biz> <1132335171.30630.23.camel@columbus.webtent.org> <437E1EA2.40803@ywave.com> <1132341155.30630.31.camel@columbus.webtent.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1132341155.30630.31.camel@columbus.webtent.org> User-Agent: Mutt/1.4.2.1i Cc: 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 19:53:50 -0000 On Fri, Nov 18, 2005 at 02:12:35PM -0500, Robert Ftizpatrick wrote: > On Fri, 2005-11-18 at 10:34 -0800, Micah wrote: > > > I'm sure I can make it happen. My problem is the rsync backup everynight > > > fails to delete this and other files like it saying 'Permission denied'. > > > So, I am assuming it is because of this issue. The rsync script logs in > > > as admin. How can I resolve this? > > > > > > -- > > > Robert > > > > If you clear the immutable bit (as root), rsync (as admin) should be > > able to remove the file as normal. You'll just have to figure out why > > the files are immutable in the first place. You may just be able to > > clear the immutable bit on all the files and make the problem go away or > > you may need a more complex solution. > > Yeah, I don't know, the rsync script has been running for over a year > and all of sudden it can't delete files. But I don't think the files are > immutable. Did my previous post with the listing show this? But I tried > and still.... > > -bash-2.05b$ ls -lo massage.xls > -rw-r--r-- 1 admin admin - 4463104 Aug 29 17:25 massage.xls > -bash-2.05b$ su > Password: > esmtp# chflags -R noschg ./ > esmtp# exit > -bash-2.05b$ rm massage.xls > override rw-r--r-- admin/admin for massage.xls? > This might sound a bit far fetched, but I can't shake the feeling it might be right. Could it be possible you have 2 admin's in your passwd? vipw doesn't complain when you try something like that, so.... Would you mind doing a 'ls -ln' (uid/gid numeric) and the an 'echo $UID' as admin. -- greetz Joost joost@jodocus.org