This question about Configuration: Answered
AdminGroupNoRootAccess
I migrated a site from TWiki and brought many webs over. The sight had multiple webs with varying access by multiple user groups.
I have added myself into the
AdminGroup, but I still get no access as an admin. I cannot add webs, change the settings etc. via foswiki (I can change things by going directly to the files via ftp.) When I restrict a web to any group, I have no access at all. It may be because I added groups and members to groups from the back (via ftp). But I can't figure how to be recognized as an admin. In the config file the settings for authentication are the foswiki template and not Apache. Should this be changed to apache?
Thanks.
Xochi
This is probably one of those issues that would be easier to resolve using IRC.
- You should not need to convert from Template authentication to Apache. This all works regardless of the auth method. However you do need to be using the TopicUserMapper.
- Please confirm that the Foswiki super user works. That is, log in with "admin" (NOT AdminUser), using the password established when you saved the
bin/configure
configuration
- Did you copy your AdminGroup topic from TWiki, or is it new on your Foswiki install? Foswiki has converted to a new Group format storing users in the topic metadata.
- Look at the
?raw=debug
view of the AdminGroup topic. It should have a line that looks something like:
- =%META:PREFERENCE{name="GROUP" title="GROUP" type="Set" value="JoeUser, AnotherUser"}%
--
GeorgeClark - 05 Jan 2012
Thank you George. I did not copy groups or users from the TWiki site. I am able to log in with admin and with that am able to edit pages which I was not before. In the Metadata I do see the line for group but it does not include my name although in the view page my username is there. I could not remove my name or add my username. When I removed my name from the front end, I received a message that it was removed, but when I go again to the group page it is still there. When I try and add my name, I get an error message.
I created a new group with my username in it and it appears fine in the metadata. In one web I set ALLOWWEBVIEW to this new group. I cannot then see the web with my login name but can see it with the admin login.
Any chance you could attach your
AdminGroup.txt file, or if you join the #foswiki IRC channel, we could help you dig into this a bit quicker.
- 1.1.4 does have some fixes to improve the Groups UI - not sure if this might be related.
- Does the wikiname you are adding contain any non-ascii characters such as accented characters or something that might be tripping up the regexes?
- Ah... Are you using the "Groups UI" to add the wikiname to the Meta preference, or are you editing the topic text and adding it to a * Set ... statement? The new groups should only be maintained using the Javascript based UI. Once the group membership is in the meta, adding set statements won't do anything.
--
GeorgeClark - 05 Jan 2012
I set up another user and added to a group and everything seemed to work with access. So it does appear to be particular to my personal login. I am attaching the
AdminGroup.txt file as well as a screen shot of the
AdminGroup page. My login
IyanifaFakayode appears on the web page, but not in the text file. I don't know if this is a problem or not, but the admin and my personal user login point to the same user page. I will gladly join the IRC channel if that helps.
After some quick troubleshooting on IRC, it turns out that the
$Foswiki::cfg{AdminGroupWikiName}
parameter had been changed to a registered user name and that was breaking things. Resetting the configuration back to the defaults resolved the issue. Similar problems can be triggered by removing the AdminUser topic and "Registering" a real user called AdminUser. The AdminUser is a special user that is mapped to admin in
LocalSite.cfg.
The configure help for the AdminUserWikiName setting has been clarified to better identify this issue.
--
GeorgeClark - 06 Jan 2012