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'),
);

```
When you say admin, you mean the first user you created o a specific user that you gave all privileges. In anyway, as wiifm said above, even for admin, you must add the 'access argument' entry in your menu items, once you do that, and if you do what wiifm says, you should be able to access the menu item with admin and not with any other user (unless you give that permission to other users, which is unlikely).