<p>解决办法:</p><p>检验 conf目录 下所有文件,svnserve.conf 、authz、passwd文件在书写的时候行前都不要有空格<br/></p><p>如</p><p>authz文件</p><pre class="brush:bash;toolbar:false">[aliases] #joe=/C=XZ/ST=Dessert/L=SnakeCity/O=SnakeOil,Ltd./OU=ResearchInstitute/CN=JoeAverage [groups] #harry_and_sally=harry,sally #harry_sally_and_joe=harry,sally,&amp;joe admin=niy#前面不要有空格 #[/foo/bar] #harry=rw #&amp;joe=r #*= [/] @admin=rw#前面不要有空格 #[repository:/baz/fuz] #@harry_and_sally=rw #*=r [repos:/] @admin=rw *=r svnserve.conf [general] ###Theseoptionscontrolaccesstotherepositoryforunauthenticated ###andauthenticatedusers.Validvaluesare&quot;write&quot;,&quot;read&quot;, ###and&quot;none&quot;.Thesamplesettingsbelowarethedefaults. anon-access=none#取消注释后行前面不要有空格 auth-access=write ###Thepassword-dboptioncontrolsthelocationofthepassword ###databasefile.Unlessyouspecifyapathstartingwitha/, ###thefile&#39;slocationisrelativetothedirectorycontaining ###thisconfigurationfile. ###IfSASLisenabled(seebelow),thisfilewillNOTbeused. ###Uncommentthelinebelowtousethedefaultpasswordfile. password-db=passwd ###Theauthz-dboptioncontrolsthelocationoftheauthorization ###rulesforpath-basedaccesscontrol.Unlessyouspecifyapath ###startingwitha/,thefile&#39;slocationisrelativetothethe ###directorycontainingthisfile.Ifyoudon&#39;tspecifyan ###authz-db,nopath-basedaccesscontrolisdone. ###Uncommentthelinebelowtousethedefaultauthorizationfile. authz-db=authz ###Thisoptionspecifiestheauthenticationrealmoftherepository. ###Iftworepositorieshavethesameauthenticationrealm,theyshould ###havethesamepassworddatabase,andviceversa.Thedefaultrealm ###isrepository&#39;suuid. realm=repos</pre>
T:0.006400s,M:245.75 KB
返回顶部 留言