Question: I am working on a drupal 6.x module which consists of several page as defined in the .module page. The problem is that when I visit those pages as admin, I get access denied. I thought that admin (user 1) could access anything? Here the code for some of the pages:

```
function foobar_menu()
{
 $items['admin/foobar'] = array(
   'title' => 'administer foobar',
   'page callback' => 'foobarpage',
 );

 $items['admin/foobar/baz'] = array(
   'title' => 'Do baz',
   'page callback' => 'drupal_get_form',
   'page arguments' =>array('foobarpage'),
 );

```

**So how do I make sure that only admin can see these pages and the rest get a "page does not exists" error?**

EDIT: I found solution [here](http://drupal.org/node/96928).

Answer: 
You need to define `access arguments` for every single menu item.

See [drupal.org documentation](http://drupal.org/node/109157) on this subject.

For example you hook\_menu may look something like this:

```
$items['admin/foobar'] = array(
    'title' => 'administer foobar',
    'page callback' => 'foobarpage',
    'access arguments' => array('administer site configuration'),
);

```
wiifm's answer is correct, but the other alternative (if you don't want to use 'administer site configuration') is to create a custom access callback function that checks either uid == 1 or create a custom priv.

I don't know what is best for your case, but chances are you want to do as wiifm suggests.