I have Drupal 5.1 running and everything seem fine when i'm logged as a user.

But when i'm anonymous, the page only show the login form and an Access Denied page...

From the INSTALL.txt, they say:

When the install script succeeds, you will be directed to the "Welcome" page.
In "step one" click "create the first account" which will become the main
administrator account with total control. Login as the administrator and
complete the initial configuration steps on the "Welcome" page.

The Welcome page was an Access Denied page. (But i was able to create an admin account)

I would like an anynonymous access to all content. (The "Access Content" of the node module is check for anonymous)

Thanks a lot

Comments

gchaix’s picture

I'm stumped. Band new install. Even deleted all the tables and reinstalled. Same symptoms. Auth'ed users can see content fine, but anonymous users cannot see anything but an "Access Denied" page and the login block, even though node access is enabled for anonymous users.

Anyone else seeing this?

sepeck’s picture

Check that you have the proper permissions for the database account for the db install. Check that you have UID0 in the users table (UID0 is anonymous user). Otherwise this is not something I've seen in any of my installs.

Stuff that causes really weird things are hosts running mod_security.

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

gchaix’s picture

Thanks for the pointers.

The db account has full access except GRANT to the db. UID0 does exist and is in the users table. We're not running mod_security.

/me scratches his head

gchaix’s picture

After four clean installs, I think I've narrowed it down. When installing to a MySQL 5.0 DB on a remote server, I get the anonymous user access denied error. When installing to a MySQL 4.1.x localhost server, it works perfectly.

I'll post more details as I narrow it down (i.e. - testing MySQL 5.0 local and MySQL 4.1.x remote).

gchaix’s picture

http://drupal.org/node/118066

Thanks to marinam and oremj.

bomek’s picture

Thanks a lot for this solution!

I use auto_increment_increment = 10 and auto_increment_offset = 1 for my multimaster mysql setup

Rick Hood’s picture

I have almost the same issue. Anonymous user gets denied message on almost all pages. For some strange reason there is one page that Anonymous can see (besides login). It is just a basic book page.

My setup:

New Drupal 5.1 install.
Various modules, including Organic Groups.
The site is a subdomain site: demo.domain.com and I have another Drupal install at the main domain.

I mention the last thing because I am also having strange login problems where sometimes users don't get logged in - which I think is a cookie confusion thing between the domains - not sure.

Rick Hood’s picture

OK I disabled OG access control and it is all working now. This is what it says under OG access control:

"Enable access control if you want to author any content that is restricted to group members. The button below will delete one record in your node_access table (if needed) and thus enable node permissions on your site. You may revert by clicking the same button again. If you switch back and forth, your node permissions are preserved."

Not sure what the problem as - will check issues list at OG: http://drupal.org/project/issues/og

bryce’s picture

Ran into the same problem (also on an osuosl database). To fix it, I changed the rid numbering in permission, role, user_roles, and blocks_roles.