Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Dec 2008 19:27:43 -0800 (PST)
From:      BSD_Newbie <it_manager@gmx.com>
To:        freebsd-questions@freebsd.org
Subject:   Unable to delete directory even after change of ownership.
Message-ID:  <21085175.post@talk.nabble.com>

next in thread | raw e-mail | index | archive | help

Hi.

I have a quick question about chown and how it works. 

My setup: 
* Freebsd 7-RELEASE-p6 (on i386)
* /home on separate slice.


Here is what I am trying to do:
In the folder called /home, I want to store my subversion repository. While
working on this, I encountered a unique/inexplicable behavior. 


This is what I have done so far:
a) as root, created a group called repo_admin.

b) as root, created an user called svn

c) adduser utility created a home directory for user svn under /home (i.e.
/home/svn)

d) as root, created a directory called my_repos under /home (i.e.
/home/my_repos) Now owner and group are root and wheel respectively

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.

Thanks in advance for your help. 
-- 
View this message in context: http://www.nabble.com/Unable-to-delete-directory-even-after-change-of-ownership.-tp21085175p21085175.html
Sent from the freebsd-questions mailing list archive at Nabble.com.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?21085175.post>