Re: delete a page

"Claudia Frers" <[email protected]> Mon, 10 Sep 2007 11:22:51 +0200
Newsgroups gmane.comp.java.jspwiki.user
Message-ID <[email protected]>
Tracer that is the whole idea of security. There are certain rights that are
given to Admins who hopefully with no garuntee know what they are doing.
Deleting pages means that they are gone forever so only a person with admin
rights can dio this. You cannot  and should not give this right to an
authenticated user. You can delete pages by doing it on the harddisk and
pressing delete or making a backup of them might be better.

you can give any role all rights by doing this:
grant signedBy "jspwiki",
  principal com.ecyrd.jspwiki.auth.authorize.Role "BigBoss" {
    permission com.ecyrd.jspwiki.auth.permissions.PagePermission "*:*",
"modify,rename";
    permission com.ecyrd.jspwiki.auth.permissions.GroupPermission "*:*",
"view";
    permission com.ecyrd.jspwiki.auth.permissions.GroupPermission"*:<groupmember>",
"edit";
    permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*",
"createPages,createGroups";
    permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*",
"editPreferences";
    permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*",
"editProfile";
    permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*",
"login";
};

or
grant signedBy "jspwiki",
  principal com.ecyrd.jspwiki.auth.GroupPrincipal "Admins" {
    permission com.ecyrd.jspwiki.auth.permissions.AllPermission "Wikihisec";
};

Of course you need to create a Admins group or a BigBoss role for this to
work..
you can fin all this by searching the jspwiki or here..happy reading:
http://doc.jspwiki.org/2.4/wiki/Security

Note no such delete rights.

On 9/7/07, Tracer7 <[email protected]> wrote:
>
>
> Hallo
>
> thank you, for your help,
> now it works, the anounymous user can only view pages.
>
> But I have an other problem with userpermissions:
>
> No one can delete a page !
> There is no delete-Button in the page-info.
>
> How can I give rights, that the authenticated user
> can delete users ?
>
> And what is the password of the Admin ?
> I can“t log in as Admin.
>
> thank you
> Tracer
> --
> View this message in context:
> http://www.nabble.com/delete-a-page-tf4398892.html#a12546110
> 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
>