Re: Unable to delete directory even after change of ownership.
> 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? To remove anything that is located in /home, including a directory such as /home/my_repos, user svn would need write permission in the /home directory. Probably only root has write permission there. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Unable to delete directory even after change of ownership.
Hi, > the directory "." had owner and group as svn and repo_admin respectively > the directory ".." had owner and group as root and wheel respectively. Try to cut and paste example, it gives more detailed information when we read the exact output of the command. Olivier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Unable to delete directory even after change of ownership.
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-unsubscr...@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. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Unable to delete directory even after change of ownership.
> > 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). Would be -R (upper case) I think. As for the error: what is the output of: ls -lo /home ls -lo /home/my_repos Olivier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Unable to delete directory even after change of ownership.
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-unsubscr...@freebsd.org"
Unable to delete directory even after change of ownership.
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. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"