From owner-freebsd-questions@FreeBSD.ORG Tue Apr 3 10:36:25 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BC3F316A404 for ; Tue, 3 Apr 2007 10:36:25 +0000 (UTC) (envelope-from mnslinky@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.230]) by mx1.freebsd.org (Postfix) with ESMTP id 7B11B13C48C for ; Tue, 3 Apr 2007 10:36:23 +0000 (UTC) (envelope-from mnslinky@gmail.com) Received: by nz-out-0506.google.com with SMTP id r28so1077721nza for ; Tue, 03 Apr 2007 03:36:23 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=Oo2Yt5ERhgpQmAtP0epywgS3e/5jKO4qamTkdQW8Ze2AFtX7FFwFZGYAreEBWx9M6RB5i4PzHwYNfXzX9+jk+fBGaM7DkLUhehkt8UiizhsTd8NTzQstx+TMqTu7/FAOVp73KjUYRyy7fCGoMUFmeUwhb06fLiS4hgx4lyUUiF0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=s325cPbaEJ+Wp49ef4zlXRSH3MCtk3hdl4KgVy/qfZB8wtGxGnzuE99a9Es1Tn/6ioGa5lFVLdAgucGDU5R47VyVlawJf85MHlBhSHlLvINGyFCRpotPXdyghuuuhyfjOysvUivFZpO9vKKyVOicHRu26RbR8ZJegKzwD1r+nLE= Received: by 10.64.204.19 with SMTP id b19mr3856471qbg.1175596582920; Tue, 03 Apr 2007 03:36:22 -0700 (PDT) Received: from ?192.168.1.2? ( [209.240.66.157]) by mx.google.com with ESMTP id 17sm29362047nzo.2007.04.03.03.36.18; Tue, 03 Apr 2007 03:36:21 -0700 (PDT) In-Reply-To: <29ae901a0704030201j68c8b2fft3f929b9017d9c3cd@mail.gmail.com> References: <29ae901a0704030201j68c8b2fft3f929b9017d9c3cd@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <61B4A167-D2E6-4CF9-A733-82B7A4BB3B36@gmail.com> Content-Transfer-Encoding: 7bit From: Eric Crist Date: Tue, 3 Apr 2007 05:36:14 -0500 To: Gregory Houston X-Mailer: Apple Mail (2.752.3) Cc: freebsd-questions@freebsd.org Subject: Re: WWW as File and Directory Owner rather than User 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, 03 Apr 2007 10:36:25 -0000 On Apr 3, 2007, at 4:01 AM, Gregory Houston wrote: > Should WWW be able to be the owner? If not, how do I take its > privileges > away? Root is listed as a user in MySQL, as well as myself, but WWW > is not. > > Now I am afraid to create any new WordPress entries because I don't > know if > all my apps are going to start creating files with WWW as the owner > rather > than me. Greg, the www user/group is fairly standard, as it's usually the unprivileged user that the web server software is run as. The www user/group is on the FreeBSD system itself, not the MySQL instance. Any time a php script creates, edits, or removes a file, it's going to typically be done with the www user/group. One solution would be to ask your friend to make you a member of the www group, which should allow you to modify/delete any files that the scripts create. A better solution would be to setuid on the directory, and give www temporary write access when you need to perform an installation such that you just experienced. HTH ----- Eric F Crist Secure Computing Networks