From owner-freebsd-questions@FreeBSD.ORG Wed Feb 16 16:06:05 2005 Return-Path: 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 B35D516A4CE for ; Wed, 16 Feb 2005 16:06:05 +0000 (GMT) Received: from post-23.mail.nl.demon.net (post-23.mail.nl.demon.net [194.159.73.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6FA7F43D2F for ; Wed, 16 Feb 2005 16:06:05 +0000 (GMT) (envelope-from albi@scii.nl) Received: from aseed.demon.nl ([83.160.138.119]:31499 helo=localhost.localdomain) by post-23.mail.nl.demon.net with smtp (Exim 4.43) id 1D1Rgi-0000Qj-D6; Wed, 16 Feb 2005 16:06:04 +0000 Date: Wed, 16 Feb 2005 17:06:03 +0100 From: albi To: koen de wijs Message-Id: <20050216170603.3e7c1815.albi@scii.nl> In-Reply-To: <42136BE0.9030103@gmx.net> References: <42136BE0.9030103@gmx.net> X-Mailer: Sylpheed version 0.9.12 (GTK+ 1.2.10; i386-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: questions@freebsd.org Subject: Re: umask X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2005 16:06:05 -0000 On Wed, 16 Feb 2005 16:50:56 +0100 koen de wijs wrote: > I have a question aboout the umask under FreeBSD. I couldn't find what > it exactly is. > It is something for setting files how you set the 'xrwxrwxrw' > I found a file where you could chance it but don't knwo anymore what > it was. > > I want to use this for my ftp-server with FreeBSD. > I have a directory 'upload' where all my friends can put there files. > They are all members of the group 'ftpusers'. But when they put a file > in that directory all the other users from the group 'ftpusers' > canchange or delete this file. I want to change it so that the write > bit for the group is off when someonse of the ftpusers group writes > something in the folder 'upload'. afair normally you would : - chmod 1777 your_upload_dir (for anonymous uploads) - do *any* other permission-settings in the config of the FTP-server you're running