Unable to delete directory even after change of ownership.

Glen Barber glen.j.barber at gmail.com
Fri Dec 19 03:31:19 UTC 2008


On Thu, Dec 18, 2008 at 10:27 PM, BSD_Newbie <it_manager at gmx.com> 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


More information about the freebsd-questions mailing list