From owner-freebsd-questions@FreeBSD.ORG Tue Apr 21 09:44:22 2009 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 85D1210656BD for ; Tue, 21 Apr 2009 09:44:22 +0000 (UTC) (envelope-from mister.olli@googlemail.com) Received: from mail-bw0-f165.google.com (mail-bw0-f165.google.com [209.85.218.165]) by mx1.freebsd.org (Postfix) with ESMTP id 07B038FC18 for ; Tue, 21 Apr 2009 09:44:21 +0000 (UTC) (envelope-from mister.olli@googlemail.com) Received: by bwz9 with SMTP id 9so1802396bwz.43 for ; Tue, 21 Apr 2009 02:44:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:subject:from:reply-to:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=kg705lD72dBdZnnSONp2J8SZCjqP0ukXu97naWYgBPw=; b=fzN0t1ptTWXoqdm9iiHmr47Kz0B9KkTNQRtu7Abyq5yZ0BWSOAgoLNr/YzP5dVZT1M OXYKIlDa1FejBXZZxBkZyXlc91YKJHC1DfUiHMyFQCOyWvTElERMI4wTg2dsGQnoDOOz Q0H8oiGN0BqD8/uDRXELKP9ke/mWzu6EKDILc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=subject:from:reply-to:to:cc:in-reply-to:references:content-type :date:message-id:mime-version:x-mailer:content-transfer-encoding; b=ArSuyTs93UCoUgXAnnusVm2+IsV3sXMdxdbfy8OhvclIPiw87W59TXYGiLGNPb9AVD PDKbhNX3E2J3ppC56j9ejQ6ndRTp9246RTRNOdMkEjiyAeCptNwLPOqJCvm1qJ5SOZZN IW0WwClqPE+r13Bfc2ZLOCcYjctfpGbzaqv2E= Received: by 10.103.134.8 with SMTP id l8mr3643092mun.116.1240305459203; Tue, 21 Apr 2009 02:17:39 -0700 (PDT) Received: from ?10.30.1.196? (vpn-or.studi-planet.com [78.47.172.52]) by mx.google.com with ESMTPS id j2sm16386629mue.49.2009.04.21.02.17.37 (version=SSLv3 cipher=RC4-MD5); Tue, 21 Apr 2009 02:17:38 -0700 (PDT) From: Mister Olli To: John Almberg In-Reply-To: References: <1F1D939A-3787-4C5A-995B-93EDABF0BE5A@identry.com> Content-Type: text/plain Date: Tue, 21 Apr 2009 11:17:40 +0200 Message-Id: <1240305460.11199.2.camel@phoenix.blechhirn.net> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Sorting out owner and group permissions... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mister.olli@googlemail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Apr 2009 09:44:22 -0000 hi, I have the same problem on some fileservers I do the administration for. But in my case the users send the files via SSH to the server. A solution for this, based on some OS mechanism would be really great :-) Anyone ever had to solve that problem? Regards, --- Mr. Olli On Mo, 2009-04-20 at 15:21 -0400, John Almberg wrote: > On Apr 20, 2009, at 2:48 PM, John Almberg wrote: > > > I have a directory called 'scans' that is owned by 'master', but I > > want to allow 'customer' to FTP images to that directory. This is > > the way I have permissions set: > > > > # ls -l > > drwxrwxr-x 5 master customer 251904 Apr 20 10:29 scans > > > > The problem is that when customer ftp's a file to the directory, > > the permissions end up like this: > > > > -rw-r----- 1 customer customer 772584 Apr 20 15:28 image.jpg > > > > When a process run by 'master' tries to copy this file to another > > directory (also owned by master), I get the following: > > > > # cp scans/image.jpg thumbs/image.jpg > > cp: scans/image.jpg: Permission denied > > > > The only solution that occurs to me smells like a newbie kludge: to > > have a root cron job periodically chown all the images to > > master:customer. This seems like the proverbial sledgehammer. There > > must be a better way? > > > > Any thoughts, much appreciated! > > Well, I did figure out one way that seems reasonable... since I am > using pureftpd, I changed the upload mask in the pureftpd > configuration so new files are created with permissions like: > > -rw-r--r-- 1 customer customer 93177 Apr 20 20:12 image.jpg > > This seems like a pretty good approach, but if there's a better one, > I'm all ears! > > -- John > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"