From owner-freebsd-questions@FreeBSD.ORG Tue Oct 7 14:23:55 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC1101065686 for ; Tue, 7 Oct 2008 14:23:55 +0000 (UTC) (envelope-from jalmberg@identry.com) Received: from mx1.identry.com (on.identry.com [66.111.0.194]) by mx1.freebsd.org (Postfix) with ESMTP id 49FFF8FC1B for ; Tue, 7 Oct 2008 14:23:55 +0000 (UTC) (envelope-from jalmberg@identry.com) Received: (qmail 60828 invoked by uid 89); 7 Oct 2008 14:23:54 -0000 Received: from unknown (HELO ?192.168.1.110?) (jalmberg@75.127.142.66) by mx1.identry.com with ESMTPA; 7 Oct 2008 14:23:54 -0000 In-Reply-To: References: <0C63914A-E3A3-4FC7-92AD-797F407A5FF7@identry.com> Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: John Almberg Date: Tue, 7 Oct 2008 10:23:53 -0400 To: Jeremy Hooks X-Mailer: Apple Mail (2.753.1) Cc: freebsd-questions@freebsd.org Subject: Re: thorny (for me) permissions problem 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: Tue, 07 Oct 2008 14:23:55 -0000 On Oct 7, 2008, at 9:34 AM, Jeremy Hooks wrote: >>> 4. however, after upload, the file has the ownership A:B (i.e, >>> owned by > A, group B) with permissions -rw-r--r--. So B does not have > permission to > delete the file. > -rw-r--r-- 1 user_a user_b 154879 Oct 7 08:40 data_file.csv > > Hi John. > > Correct me if I am wrong but permission to delete a file depends on > the > users permissions for the containing directory. If B has write > permission > on the directory then B can delete the file. However you will > likely need > to use 'rm -f'. Argh!!!! As a newbie admin, I really have a tough time with permissions. I swear I got a permissions error when I tried to delete this dang file, but I just logged in as B and was able to delete it just fine. Of course this is because B owns the directory. I guess I must have done something boneheaded an hour or two ago... gosh, I hate wasting time. Mine, and the lists, of course. Well, thanks to Valintin, I did figure out how to change the umask for pure-ftpd. So now uploaded files have the permissions I wanted, even if they are not needed. And thanks to the rest, I figured out it was working all along... And now I can't even duplicate the error I saw before... Does this ever get any easier??? How can any one person remember all this stuff??? -- John