From owner-freebsd-questions@FreeBSD.ORG Sun Jul 9 20:17:40 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 A895616A4DA for ; Sun, 9 Jul 2006 20:17:40 +0000 (UTC) (envelope-from jekillen@prodigy.net) Received: from smtp107.sbc.mail.mud.yahoo.com (smtp107.sbc.mail.mud.yahoo.com [68.142.198.206]) by mx1.FreeBSD.org (Postfix) with SMTP id 3E95D43D45 for ; Sun, 9 Jul 2006 20:17:40 +0000 (GMT) (envelope-from jekillen@prodigy.net) Received: (qmail 8013 invoked from network); 9 Jul 2006 20:17:39 -0000 Received: from unknown (HELO ?75.7.236.228?) (jekillen@prodigy.net@75.7.236.228 with plain) by smtp107.sbc.mail.mud.yahoo.com with SMTP; 9 Jul 2006 20:17:39 -0000 Mime-Version: 1.0 (Apple Message framework v622) Content-Transfer-Encoding: 7bit Message-Id: <8e104c5252235df01ba3babda4fe7a59@prodigy.net> Content-Type: text/plain; charset=US-ASCII; format=flowed To: FreeBSD Mailing List From: jekillen Date: Sun, 9 Jul 2006 13:19:47 -0700 X-Mailer: Apple Mail (2.622) Subject: default umask for Apache 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: Sun, 09 Jul 2006 20:17:40 -0000 Hello; I've not had to do this on a Unix system before. But now I have Apache running as nobody and have php scripts creating and writing to directories. The files it creates have the default mask rw-r-r and I want to change it to rw-rw-- so I can remove the files and dirs with group write permissions via ftp. I'm using default csh. I don't remember where to find this info in Complete FreeBSD, or other sources. so: How do you change the default mask for a user like Apache on a Unix system? (I assume there is a separate default for both files and directories.) Other wise I have to manually cd into each directory, remove the files as root, cd back, remove the dir, cd to the next, etc. It could add up to hundreds of directories with multiple hundreds of files to remove. Maybe I could practice shell scripting with this, or modify the php code to unlink the files and remove the dirs. But i may need to save some for future reference. thanks in advance; JK