From owner-freebsd-questions@FreeBSD.ORG Thu Jul 27 22:27:48 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 26EA316A4DD for ; Thu, 27 Jul 2006 22:27:48 +0000 (UTC) (envelope-from ben.ruston@ntlworld.com) Received: from queue04-winn.ispmail.ntl.com (queue04-winn.ispmail.ntl.com [81.103.221.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6984243D46 for ; Thu, 27 Jul 2006 22:27:47 +0000 (GMT) (envelope-from ben.ruston@ntlworld.com) Received: from aamtaout04-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout03-winn.ispmail.ntl.com with ESMTP id <20060727215409.MFXA1865.mtaout03-winn.ispmail.ntl.com@aamtaout04-winn.ispmail.ntl.com> for ; Thu, 27 Jul 2006 22:54:09 +0100 Received: from [192.168.0.101] (really [86.15.53.202]) by aamtaout04-winn.ispmail.ntl.com with ESMTP id <20060727215409.XRWN15733.aamtaout04-winn.ispmail.ntl.com@[192.168.0.101]> for ; Thu, 27 Jul 2006 22:54:09 +0100 Message-ID: <44C93602.9000506@ntlworld.com> Date: Thu, 27 Jul 2006 22:54:10 +0100 From: Benjamin Ruston User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 22:27:48 -0000 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 To change a directory ownership use chown user /home/user/public_html obviously substituting user for the desired username. As for your public_html issues, you need to search your apache configuration file for the UserDir module section and if it's disabled, enable it. Mine looks like this: UserDir public_html UserDir disabled root toor daemon operator bin tty kmem games news man sshd bind proxy _pflogd _dhcp uucp pop www nobody$ # # Control access to UserDir directories. The following is an example # for a site where these directories are restricted to read-only. # AllowOverride FileInfo AuthConfig Limit Indexes Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec Order allow,deny Allow from all Order deny,allow Deny from all