From owner-freebsd-questions@FreeBSD.ORG Thu Jul 27 21:43:35 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 5784016A4DF for ; Thu, 27 Jul 2006 21:43:35 +0000 (UTC) (envelope-from freebsd.ph@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id F09E243D88 for ; Thu, 27 Jul 2006 21:43:26 +0000 (GMT) (envelope-from freebsd.ph@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so518747uge for ; Thu, 27 Jul 2006 14:43:25 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=gqM+oHs9ZMkAt9H14Fl0c1tYIu4XYVvWyRCPhnR1KuR3pXmb06U6+Jx10mU/8XbtfFaSlV3wzcYj1Q1zyvhK6IUeHbXviQ9UVSKgfUmOtovnH+EpVVmMhOaxoFx1exUnMktUgKiAShhNzaMBzdeNlcivSrYXJr3e00khxVuNH5E= Received: by 10.78.170.6 with SMTP id s6mr366985hue; Thu, 27 Jul 2006 14:43:25 -0700 (PDT) Received: by 10.78.141.18 with HTTP; Thu, 27 Jul 2006 14:43:25 -0700 (PDT) Message-ID: Date: Fri, 28 Jul 2006 05:43:25 +0800 From: "jan gestre" To: eoghan In-Reply-To: MIME-Version: 1.0 References: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd Subject: Re: user 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: Thu, 27 Jul 2006 21:43:35 -0000 On 7/28/06, eoghan wrote: > > Hi > I have a user that I use for doing the odd bit of work on my > freebsd-6.1-RELEASE machine. > I wanted to set apache to work from: > /home/user/public_html/ > instead of the default location. I can create these folders no > problems but i have to do it as root: > mkdir /home/user/public_html/ > How do I ensure my user can copy files from gui (gnome) to this > folder. Im told I dont have permission to copy to this folder. > Also apache tells me I dont have permission when I change the > DocumentRoot to point to /home/user/public_html/ > Just not sure how to go about giving a user permissions on files/ > folders I want them to be able to edit. Any pointers? > Thanks > Eoghan > the default permission for apache assuming you are using apache22 is 755, changing it to 777 will have security repercusions, why not add that user to group that owns/runs apache or give that user sudo power. HTH