I need to delete all files/dirs named .svn using rm on cgywin
drwxr-xr-x 6 4096 Oct 26 15:33 .svn
$ rm -d .svn
rm: cannot unlink `.svn': Not owner
If you are the adminsitrator on your machine, ownership is a concept that shouldn't concern you much.
Do chmod u+w .svn
, then try your remove again.
cacls
(if administrator) to get permissions on the file.
Oct 27, 2009 at 5:18
export CYGWIN=ntea
Oct 27, 2009 at 23:01
ntsec
not ntea
(same link, further down the page), to get real permissions instead of faked. more here: cygwin.com/cygwin-ug-net/ntsec.html ...
Oct 28, 2009 at 4:53
super-user (root) is the only account able to use rm -d
flag
From the rm man page
-d, --directory
unlink FILE, even if it is a non-empty directory (super-user
only; this works only if your system supports ‘unlink’ for
nonempty directories)
You will need to su root
or something similar before using rm -d
Have you tried rm -rf /full/path/to/dir
or (if empty) rmdir /full/path/to/dir
?