From owner-freebsd-questions@FreeBSD.ORG Fri Dec 19 03:40:20 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A924106564A for ; Fri, 19 Dec 2008 03:40:20 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mx1.freebsd.org (Postfix) with ESMTP id 084318FC19 for ; Fri, 19 Dec 2008 03:40:20 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LDWDr-0001AV-At for freebsd-questions@freebsd.org; Thu, 18 Dec 2008 19:40:19 -0800 Message-ID: <21085301.post@talk.nabble.com> Date: Thu, 18 Dec 2008 19:40:19 -0800 (PST) From: BSD_Newbie To: freebsd-questions@freebsd.org In-Reply-To: <4ad871310812181931l20d0fae2p9885d946f329054c@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: it_manager@gmx.com References: <21085175.post@talk.nabble.com> <4ad871310812181931l20d0fae2p9885d946f329054c@mail.gmail.com> Subject: Re: Unable to delete directory even after change of ownership. 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: Fri, 19 Dec 2008 03:40:20 -0000 Glen, The directory was empty. only the usual directories "." and ".." were present when I try to delete the /home/my_repos directory. the directory "." had owner and group as svn and repo_admin respectively the directory ".." had owner and group as root and wheel respectively. These settings are NOT UNUSUAL. The directories "." and ".." under /home/svn also have the same permission/owner-group info as above. I do not understand as to why the -r switch is needed. However, I shall give it a try and keep you posted. Thanks for addressing my post. Cheers. Glen Barber-2 wrote: > > On Thu, Dec 18, 2008 at 10:27 PM, BSD_Newbie wrote: >> >> e) as root, executed the following command. >> chown svn:repo_admin /home/my_repos >> >> f) verified that the file permissions for /home/my_repos is correctly set >> after the change in ownership. >> >> >> Here is the problem I encountered >> When I log in as svn, I am placed in the folder /home/svn. >> As svn, when I try to delete the folder (/home/my_repos), I get the >> error >> "Permission denied". >> >> Why do I get this error when I (svn) am the owner of that directory? >> >> However, I have no problem deleting a directory under /home/svn. >> > > My guess is you should've used the -r flag with chown (recursive). > > -- > Glen Barber > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > > -- View this message in context: http://www.nabble.com/Unable-to-delete-directory-even-after-change-of-ownership.-tp21085175p21085301.html Sent from the freebsd-questions mailing list archive at Nabble.com.