From owner-freebsd-questions@FreeBSD.ORG Tue Apr 21 15:02:44 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 B9AB91065673 for ; Tue, 21 Apr 2009 15:02:44 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 87E548FC1C for ; Tue, 21 Apr 2009 15:02:44 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from sarevok.dnr.servegame.org (mailhub.rachie.is-a-geek.net [192.168.2.11]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id 6F3FD7E837; Tue, 21 Apr 2009 07:02:43 -0800 (AKDT) From: Mel Flynn To: freebsd-questions@freebsd.org, mister.olli@googlemail.com Date: Tue, 21 Apr 2009 17:02:41 +0200 User-Agent: KMail/1.11.2 (FreeBSD/8.0-CURRENT; KDE/4.2.2; i386; ; ) References: <1F1D939A-3787-4C5A-995B-93EDABF0BE5A@identry.com> <200904211436.02409.mel.flynn+fbsd.questions@mailing.thruhere.net> <1240319627.11199.25.camel@phoenix.blechhirn.net> In-Reply-To: <1240319627.11199.25.camel@phoenix.blechhirn.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904211702.41953.mel.flynn+fbsd.questions@mailing.thruhere.net> Cc: John Almberg Subject: Re: Sorting out owner and group permissions... 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, 21 Apr 2009 15:02:45 -0000 On Tuesday 21 April 2009 15:13:47 Mister Olli wrote: > no does not work, since using SSH / SFTP does not involve starting a > shell. so umask settings don't work. Then you're using the wrong system for the task. The OS can't make assumptions about "what the ownership/modes of a file should really be, if an application is telling it they should be different". This is why more mature FTP daemons allow modes/ownerships to be set on upload. The OS already: - gives a new file group of the containing directory so it is easy to create "shared files" in a "shared directory" - has a default umask that is world readable - allows changing a users umask The application (sftp) overrides all this and now you're expecting the OS to override that again. Don't think so ;) -- Mel