Re: delete a page

"Claudia Frers" <[email protected]> Fri, 21 Sep 2007 00:23:27 +0200
Newsgroups gmane.comp.java.jspwiki.user
Message-ID <[email protected]>
Tracer,Konstantin
Sorry for the wrong info guys :-(
After lots of trial & error it works for me.
See if this works for you:
Replace the last two permission paragraphs with this:

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

Note that in your case you had "JSPWiki" where you need to give it the name
of your webapp
and i believe its case sensitive. You log in and then you create the admins
group and add yourself to it. You put in your correct url my case:
http://localhost:8080/nutopia/admin/SecurityConfig.jsp and hope for green
where admins is concerned. If all is still well, you will be able to see a
big ugly "delete entire page" button under page info as you wish.

Janne fyi: I tried using the default config..Got nada as in nothing...I seem
to recall reading a description of this failing as a severe bug but am not
sure. And the doc is imho unclear.
How exactly should an authenticated user add himself to an Admin group and
it does seem confusing that an Admin role is created when no password exists
for such a user...perhaps we are all missing the point here :-)

On 9/20/07, Janne Jalkanen <[email protected]> wrote:
>
>
> Heya!
>
> There *is* a delete button, if you have admin rights!  It's on the
> PageInfo of the page...
>
> You can check your configuration with admin/SecurityConfig.jsp.  It
> will tell you if there's something wrong with your security setup.
>
> /Janne
>
> On 20 Sep 2007, at 15:13, Claudia Frers wrote:
>
> > Hi Konstantin:
> > This can be confusing about Jspwiki I know but there is no delete
> > button.
> > I wrote:You can delete pages by doing it on the harddisk and pressing
> > delete.
> > That means that you need to have access to the server whether its
> > the local
> > host or the real thing and select the text files and their
> > properties and
> > press the delete button on your computer.
> > Remember this is all volunteer work and therefore there is often
> > more help
> > available for users than
> > techies. But if you search the wiki you can actually find this
> > info. ;-)
> >
> > On 9/13/07, Konstantin Chekushin <[email protected]> wrote:
> >>
> >> That good, but where is the button "Delete"? I have changed my policy
> >> file:
> >>
> >> My "Admin" user in the group "Admin"
> >> And here is the record from policy:
> >>
> >> grant signedBy "jspwiki",
> >>   principal com.ecyrd.jspwiki.auth.GroupPrincipal "Admin" {
> >>     permission com.ecyrd.jspwiki.auth.permissions.AllPermission
> >> "JSPWiki";
> >> };
> >>
> >> When I am logged in, I do not see any possibility to remove the
> >> page...
> >>
> >> After trying I add the record:
> >>
> >> grant signedBy "jspwiki",
> >>   principal "Admin" {
> >>     permission com.ecyrd.jspwiki.auth.permissions.PagePermission "*",
> >> "delete";
> >> };
> >>
> >> with no result, for my sorry. I still cannot delete users.
> >>
> >> Can some describe, how I can give permissions to remove pages for my
> >> principal user Admin, which is in group "Admin"?
> >>
> >> Thanks!
> >>
> >>> -----
> >>> -----
> >>> : "Claudia Frers" <[email protected]>
> >>> : 2007-09-10 14:31:47.593
> >>> : "JSPWiki Users discussion list" <jspwiki-
> >>> [email protected]>
> >>> : Re: [Jspwiki-users] delete a page
> >>>
> >>> 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 cant 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
> >>>>
> >>> _______________________________________________
> >>> 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
> >>
> >>
> >> ---------------------------------------------------------------------
> >> ----------
> >> http://www.one.lv - Tavs mobilais e-pasts!
> >>
> >> Tagad lasi savu e-pastu ar mobilo telefonu - wap.one.lv!
> >> _______________________________________________
> >> 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
> >>
> > _______________________________________________
> > 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
>
> _______________________________________________
> 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
>