Permission denied while creating files or subdirectories inside /home

Solution Verified - Updated -

Issue

  • The autofs configuration works fine but when tried to create a file or directory in the parent directory of the mount-point, it fails with the "Permission denied" error

  • While trying to create a local mount point for testuser, permission denied error is observed

# mkdir /home/testuser
  mkdir: cannot create directory ‘/home/testuser’: Permission denied

Environment

  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • autofs

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content