Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 705
  • Last Modified:

Drupal, Access Denied for admin?

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
glepiza
Asked:
glepiza
  • 4
  • 3
1 Solution
 
Thomas4019Commented:
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
 
Thomas4019Commented:
By the way, it is very normal to have to go to /user and login first and then have to go to /admin.
0
 
glepizaAuthor Commented:
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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
Thomas4019Commented:
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
 
glepizaAuthor Commented:
I want to ne able to login on the / admin pages. Thx
0
 
Thomas4019Commented:
Install login toboggan, http://drupal.org/project/logintoboggan.
0
 
glepizaAuthor Commented:
Veery niceee, thanks!!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now