Re: Users and Rights

"Claudia Frers" <[email protected]> Thu, 30 Aug 2007 14:10:14 +0200
Newsgroups gmane.comp.java.jspwiki.user
Message-ID <[email protected]>
Hi Tracer:
You did the right thing:
//Changes:
//Removed from Anonymous/Asserted
//    permission com.ecyrd.jspwiki.auth.permissions.PagePermission "*:*",
"edit";
//    permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*",
"createPages";
//

I have the same thing working for versions 4.2 and later versions.
I deleted the lines rather than commenting out ..
This might help:
You need to restart Tomcat and use a fresh browser...
That should be enough ...But sometimes you need to
delete the webapp from Tomcat's work folder ..if it refuses to cache
properly.
My local installment would be like:
 /home/claudia/Tools/apache-tomcat-5.5.20/work/Catalina/localhost/wiki

And when everything else fails: do a fresh install with the new policy file.
The changes are needed in the policy file not the jaas file and it will work
for you.

On 8/30/07, Tracer7 <[email protected]> wrote:
>
>
> Hallo
>
> i have erased the lines edit and createPages for anonymous user,
> but he still can edit pages.
> What could be the problem ?
>
> // anonymous:
> grant signedBy "jspwiki",
>   principal com.ecyrd.jspwiki.auth.authorize.Role "Anonymous" {
>     permission com.ecyrd.jspwiki.auth.permissions.PagePermission "*:*",
> "view";
> //    permission com.ecyrd.jspwiki.auth.permissions.PagePermission "*:*",
> "edit";
> //    permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*",
> "createPages";
>     permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*",
> "editPreferences";
>     permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*",
> "editProfile";
>     permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*",
> "login";
> };
> --
> View this message in context:
> http://www.nabble.com/Users-and-Rights-tf4347668.html#a12404037
> Sent from the JspWiki - User mailing list archive at Nabble.com.
>
> _______________________________________________
> This is the Jspwiki-users mailing list, in which we discuss the
> stable release (even-numbered, 2.4.x, 2.6.x), and user-issues.
> For development discussion, please join jspwiki-dev.
> http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
> http://www.jspwiki.org/JSPWikiMailingList
>