Date: Tue, 21 Apr 2009 17:02:41 +0200 From: Mel Flynn <mel.flynn+fbsd.questions@mailing.thruhere.net> To: freebsd-questions@freebsd.org, mister.olli@googlemail.com Cc: John Almberg <jalmberg@identry.com> Subject: Re: Sorting out owner and group permissions... Message-ID: <200904211702.41953.mel.flynn%2Bfbsd.questions@mailing.thruhere.net> In-Reply-To: <1240319627.11199.25.camel@phoenix.blechhirn.net> References: <1F1D939A-3787-4C5A-995B-93EDABF0BE5A@identry.com> <200904211436.02409.mel.flynn%2Bfbsd.questions@mailing.thruhere.net> <1240319627.11199.25.camel@phoenix.blechhirn.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904211702.41953.mel.flynn%2Bfbsd.questions>