In MOSS 2007 Portal is configured to Form Based Authentication.
(Central Admin, Portal & IIS set appropriately)
Still it gives error : 401 Unauthorized message
1. Approve all pending items.
2. Save your changes and publish it.
3. Check Connection string for FBA Authentication
4. Try to connect data base and check permission to user FBA database.
5. Check Permission to access content database