question

dclaar avatar image
dclaar Suspended asked ericnute edited

SVN Access is denied in windows 7 - a solution

When you do an SVN update in iTest, you get:

org.tigris.subversion.javahl.ClientException: Access is denied.  
svn: Error resolving case of 'C:\Users\dclaar\My Documents\itest\main\dev'

The problem is windows 7's goofy protections. You can see this by using the icacls command:

C:\Users\dclaar\Documents\itest>icacls "C:\Users\dclaar\My Documents"
C:\Users\dclaar\My Documents Everyone:(DENY)(S,RD)
                             NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F)
                             BUILTIN\Administrators:(I)(OI)(CI)(F)
                             FOO\dclaar:(I)(OI)(CI)(F)
                             LT-DCLAAR-WIN7\dclaar:(I)(OI)(CI)(F)

You'll need to remove the DENY bit. Go to the start menu, find Command Prompt under Accessories. Right click on it, and select Run as Administrator. (If you try to do this with just the standard command prompt, it will fail). Click OK on the popup. Remove Everyone. Be careful! You could mess up your system if you do it wrong! Note that--as shown above--FOO\dclaar (as a little plumber would say: dat's a me!) will still have permission after Everyone is removed. We're just taking out the riff-raff. smile

C:\Windows\system32>icacls "C:\Users\dclaar\My Documents" /L /remove Everyone
processed file: C:\Users\dclaar\My Documents
Successfully processed 1 files; Failed processing 0 files

And, now you can ask "Where did Everyone go?"

C:\Users\dclaar\Documents\itest>icacls "C:\Users\dclaar\My Documents"
C:\Users\dclaar\My Documents NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F)
                             BUILTIN\Administrators:(I)(OI)(CI)(F)
                             FOO\dclaar:(I)(OI)(CI)(F)
                             LT-DCLAAR-WIN7\dclaar:(I)(OI)(CI)(F)

Everyone is gone! Ah, don't be sad, SVN will work, even if My Documents is lonely.

iTestsubversion (svn)MS Windows
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
KumarS avatar image
KumarS answered KumarS posted

Great piece of information. Thanks for sharing.

1 comment
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

dclaar avatar image dclaar commented ·

Thanks. Just thought I'd push over my latest couple of FAQs, given all the nits that W7 has been throwing at me. (I really like W7 in general, it just has some new quirks).

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.