Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Drupal, Access Denied for admin?

Posted on 2010-08-17
7
Medium Priority
?
692 Views
Last Modified: 2012-05-10
Hi Experts,

Something weird just happened to me. In my drupal site (not finished yet), I used to log in typing:
localhost/admin and get in there with no problems. but now I am getting Access denied and the only way to log in is by typing  localhost/user. What happened in there? I wonder if that has something to do with the fact that I create a new role for me named Administrator and I gave to me all the privileges. But that put me in a user level? I've been trying to understand this stuff about permissions but sometimes it gets confusing. Someone please explain me why this is happening.

thanks in advance.

Winter
0
Comment
Question by:glepiza
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 17

Expert Comment

by:Thomas4019
ID: 33461363
If going to /admin works it means for some reason Drupal is remembering your previous login information. This can change if you start using a different browser or change your browser's cookie settings.
0
 
LVL 17

Expert Comment

by:Thomas4019
ID: 33461369
By the way, it is very normal to have to go to /user and login first and then have to go to /admin.
0
 

Author Comment

by:glepiza
ID: 33469500
Hi Thomas, thanks for your answer. Could you please tell me what do you mean to change my cookies settings? I just deleted them but im still  cant access using admin link. Thank you ;)
0
Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

 
LVL 17

Expert Comment

by:Thomas4019
ID: 33469633
To administer a drupal site you always must be logged in.  You log into a drupal site at example.com/user. Drupal uses a cookie track login sessions, so if you have the same cookie as the day before, you might not need to login.

Some modules provide a "user login form" on "access denied" pages. An example of this would be the Login Toboggan module, http://drupal.org/project/logintoboggan.

So are you wanting to be able to login on the /admin pages, or are you wanting to not have to login at all? LoginToboggan solves the first of these two problems.
0
 

Author Comment

by:glepiza
ID: 33470148
I want to ne able to login on the / admin pages. Thx
0
 
LVL 17

Accepted Solution

by:
Thomas4019 earned 1000 total points
ID: 33470520
Install login toboggan, http://drupal.org/project/logintoboggan.
0
 

Author Comment

by:glepiza
ID: 33471320
Veery niceee, thanks!!
0

Featured Post

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

DotNetNuke (DNN) (http://www.dotnetnuke.com) is a leading open source web content management system (CMS) and application development framework for Microsoft .NET. Localization is an essential part of building websites, especially in countries that …
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question