Home

Primary links

  • top o the deck
  • Drupal for Beginners
  • about
  • links
  • give me some sugar

Drupal stuff

  • EDAM
  • STARDOM
  • Question Bank
  • Drupal musings
  • Drupal tips
Home

Key stuff on this site

Easy Drupal Admin Manual (EDAM)

SEO, Traffic and Revenue: Drupalace's Online Manual (STARDOM)

Drupal for Beginners

Subscribe to posts by RSS or email

Subscribe to Drupal Ace by RSS feed RSS feed 

Subscribe to Drupal Ace by Email

Donate towards my web hosting bill! Get a great host!

Share and save

Share/Save

Random piece of content

Oof! Hit by bad_httpd_conf error

Manuals on this site

  • Easy Drupal Admin Manual (EDAM)
    • Welcome to Your Site
    • First Steps: Please Read!
      • Understanding These Instructions
      • Important Terminology!
      • Best Practices for Site Admins
    • Super Quick Guide (for the experienced and the brave)
    • Logging In
    • Your Administrator Tools
    • Setting Site Basics
      • Setting Site Information
      • Configuring Your Theme
    • Creating Content
      • Node Types
      • Create a Page Node
      • Create a Story Node
      • Create a Blog Entry Node
      • Making Images and Other Files Available
      • Using Text and Image Editors
    • Organizing Your Content
      • Terms, Vocabularies, and Taxonomy: "Tagging" Your Content
        • Taxonomy Suggestions
      • Menus, Links, and Paths: Navigating the Site
        • Content Paths and URLs
        • Creating Links
        • Working with Menus: Administration Form (Drupal 6)
        • Working with Menus: Administration Form (Drupal 5)
        • Creating Menu Items on the Fly
        • Placing Menus on Your Pages
      • Placing Content on pages
        • Creating a page from a Single Node
        • Creating a page from a List of Nodes
        • Setting the Front Page
      • Working with Blocks
    • Maintenance Stuff
      • Maintenance and Construction Notices
    • Other Fun Things
      • Changing Color of Garland Theme
      • Free Aliases!
  • SEO, Traffic and Revenue: Drupalace's Online Manual (STARDOM)
    • Set a Clear Goal
    • Make a Good Site
      • Put out the Welcome Mat
      • Make Great Content
      • Build a Great Brand
      • Make Navigation Easy
      • Tune Site Performance
    • Drive Traffic
      • Promote your Site
      • Get Found with SEO
    • Build a Community
      • Build an Offsite Community
    • Monitor and Improve
    • One-Page Checklist
    • Drupal and the Blogging Starter Checklist
      • Drupal and the Blogging Starter Checklist, Part 1
      • Drupal and the Blogging Starter Checklist, Part 2
      • Drupal and the Blogging Starter Checklist, Part 3
      • Drupal and the Blogging Starter Checklist, Part 4
      • Drupal and the Blogging Starter Checklist, Part 5
      • Drupal and the Blogging Starter Checklist, Part 6
      • Drupal and the Blogging Starter Checklist, Part 7

You said it!

  • Tough one to Inves...

    I have heard and read stories such as this one before, and their common denominator is Drupal...

  • exclude

    excellent tip - can highly recommend the module - installed and working perfectly in drupal 7

  • Great CMS

    This book seems very interesting as I am currently starting a project to build a community site...

  • Thanks!

    Thank you very much !

  • Thank you very muc...

    Thank you very much !

more

access

Access denied problems

  • access
  • tip

Got unexpained "access denied" troubles keeping people from your content? Go to admin/content/node-settings, and try the 'Rebuild Permissions' button.

If that doesn't work, see other ideas for access denied for visitors and access denied for admins.

  • Drupalace's Quotes

Limiting node access: three quick'n'easy tools

Submitted by Drupalace on Sat, 2008-08-30 13:49
  • access
  • Drupal
  • modules
Keep it secret! Keep it safe!

There are several easy, handy modules for limiting access to specific nodes. I always have trouble keeping three of my faves straight – partly because they all start with "P" – so here I'll write them down for my reference and yours. (Note: I'm talking Drupal 5.x.)

The three easy P's

"What's the password, Bub?": Protected Node module

This module adds a 'Protected node' item to your node edit forms; if you want to password-protect the node, just hit the 'Node is protected' checkbox, and enter a password. (Passwords are on a per-node basis; you don't set a global password that'll take care of all protected nodes.) There's even a JavaScript-based password quality checker.

On the Access control form, you choose whether to grant a role any access at all to the protected node; those without that access permission head to your "access denied" page. So you get two levels of protection (am I writing a deodorant commercial?): a password needed for any role to view the node, and role-based permission that can prevent a role from even seeing the password input form.

Note: On the Modules form, Protected Node shows up way at top under "Access", not later under "Other". 

http://drupal.org/project/protected_node

"Members Only!": Private module

The Private module adds a simple 'Private' checkbox to a node's edit form. Check it, and the node can be viewed only by the node's author and by roles with the right permissions. Other users get your "access denied" page. 

You set permission to view private-marked nodes via the "Access Control" form, of course. This is a global permission; roles with view permission can view all private-marked nodes. The module doesn't grant the ability to set viewing permissions on a per-node basis.

A good use for this module is to restrict some nodes from anonymous (non-logged-in) users, creating "members only" pages. (You could also grant anonymous users permission to view private nodes, but giving everybody viewing permission makes the module useless! Go ahead and discriminate!)

http://drupal.org/project/private

"Just one bite!": Premium module

This module places its "Access restricted for non-premium users" checkbox under the "Publishing options" item on a node's edit form. It provides a handy middle-ground between no access and Full Monty: roles without "access premium content" permission can see only the node's teaser, followed by a terse "Full text available to premium subscribers only". 

That makes it handy for any site in which everyone gets a sample of the goods, but only registered (which may mean paying) users get the whole thing.

Like the above, users with permission to access premium-marked content will get to access it all; there's no fine-grained control for setting role-based access on a per-node basis.

http://drupal.org/project/premium

Other modules

There are a lot more access-control modules out there, including heavy hitters like ACL and Content Access. See the big list at User access/authentication modules.

I like the above three, though, as light-weight solutions for smaller sites that don't require fine-grained access systems, just a quick way to keep certain nodes out of certain hands. Keep 'em handy in your toolbox!

  • Drupalace's blog
  • 7 comments
  • Quote

How to fix "Access Denied" for visitors?

Submitted by Drupalace on Fri, 2008-01-04 12:08
  • access
  • Drupal
  • answered question

Just as I earlier had a problem with admins unable to access a Drupal site, I had a problem with visitors unable to access a new site. That is, I could see everything fine as admin, but checking from another (non-logged-in) browser, only the default "Welcome to Drupal" content would show up. (Blocks were visible, but links to nodes in those blocks wouldn't reveal anything. In short, visitors could not access any node.)

Click here and read more!
Question answer: 

Once again, the forums to the rescue. Here's the thread that helped:

http://drupal.org/node/134505

And the comment with the solution that worked for me:

http://drupal.org/node/134505#comment-219661

I went to phpMyAdmin, called up my site database, and ran the indicated SQL query. Shazam, things worked!

I'll have to leave explanation to the pros; this is the kind of wizardry that still rings esoteric to my ears. But it did the trick, and I am grateful to solution poster briandelicata, as well as everyone posting in the thread. Great stuff!

(Oh, and one note: Before playing with your database per this solution, be sure to BACK UP THE DATABASE!)

More notes 

Here's a claim that the taxonomy_access module can cause the problem too: http://drupal.org/node/239951 

  • Add new comment

Learn Drupal, hands-on

Get the beginner-friendly ebook that teaches community site building via a live case study.

Drupal 6 Ultimate Community Site Guide

Read the review

It's a deal!

Dreamhost dealsDrupal Ace presides over his domain, proudly ensconced in his DreamHost eyrie. Won't you join me?

Promo code deal!

Just enter the code 49ER when you register for an account, and save $49 off the already-low price. No strings!

Read my hosting service review

Drupal mini tip

Need to disable a Drupal module but can't do so from within the site? (This could happen if the wayward module is preventing you from reaching the Modules form!) Look for the module's entry within the "system" table of the site's database, and set the module's status to "0". 

(From within phpMyAdmin: Select the "system" table from the column of tables at left. Click the "Browse" tab. Find the row for the module you wish to disable, and click the "pencil" icon in that row. In the resulting form, input "0" for the Value of "status", and click the "Go" button. Done!) 

Powered by Drupal, an open source content management system

Copyright 2007 and forever after. Made with Drupal, of course. On OS X, of course. Served up by DreamHost. DreamHost

RoopleTheme