I've set up and logged in as AdminUser and cannot create new webs on the new TWiki appliance.  Had been using the "old" one for a couple of months with success.  The new one is a fresh install.  Any ideas?  I get the following error message  - not sure if it's related to the appliance, or TWiki itself.

"Access check on Main.WebHome failed. Action "CHANGE": access not allowed on root."

Thanks for looking,
Dan

Replies (8)

Sounds like a permissions issue

Reply 1

It sounds like the folder where it is trying to do something is owned by root rather than the webserver account. I'm not familar with the appliance but if you can find the folder where Twiki resides and chown it to the user www-data (the webserver user account) that hopefully will fix the issue. If that doesn't work then try giving it 777 permissions (which is allow anyone to do anything) and that should fix it for sure (but is potentially a security risk).

Adding a new Web

Reply 2

I have just experienced the same problem -- did you have any luck in finding a resolution or a work around?

That is a pretty fundamental issue

Reply 3

And I think that it definately classes as an appliance bug. I'm happy to have a look and help you (and the TKL devs) work out a resolution. Unfortunately I'm pretty snowed under at the moment. In the meantime perhaps log a bug on the TKL Bugtracker. You can just give a brief outline of the problem and link back to this forum if you'd like.

Cannot add webs to new TWiki

Reply 4

I've not had a chance to get back to this problem until lately.  I've re-installed the TWiki with the latest download in case something was changed with it.  No idea where the TWiki install is located.  Still cannot add webs to the TWiki so it appears the appliance is not built correctly.  Would be happy to work with someone on testing with it.

Thanks for that

Reply 5

Obviously it's a Twiki internal permission issue then, nothing to do with Linux file permissions as I guessed...

Thanks for the further details, at least others can easily apply your workaround now.

You could try giving the webserver full ownership

Reply 6

Should be something like this:

chown -R www-data:www-data /var/www/twiki

Does that resolve the issue?

Have a crack at Glen's workaround

Reply 7

See his post above.

Fix: Add AdminUser to the TWikiAdminGroup

Reply 8

Thanks for reporting the bug folks, and sorry it took so long to be squashed. I updated the bug report with the following:

As always, thanks for reporting the issue. I've committed a fix which will be included
in the upcoming release. The fix is actually quite simple, and not sure how the bug
got through our testing.

To fix this issue in currently deployed appliances, add the AdminUser to the
TWikiAdminGroup:

/var/www/twiki/data/Main/TWikiAdminGroup.txt

- * Set GROUP = TWikiAdminUser
+ * Set GROUP = TWikiAdminUser AdminUser

This not only fixes the issue of creating new Webs, but also other actions that require TWikiAdminGroup privileges.