Why do automount shares give "Permission denied" error?

Solution Verified - Updated -

Issue

  • The auto.direct and the stacked mounts on client(shown below)
/parent                -rw                                      server1:/vol/parent \
  /child1              -ro                                      server1:/vol/child1 \
  /child2              -ro                                      server1:/vol/child2 \
  /child3              -ro                                      server1:/vol/child3
  • All fail to work. Running automount in debug mode shows the following error message.
# automount -f -d -v

  mount_autofs_offset: can't create mount directory: /tmp/autoHUJvGG/child1, Permission denied
  • None of the mounts work but mounting the volumes manually works.

Environment

  • Red Hat Enterprise Linux 5, 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.