User 'root' fails to run command 'mount' with error "mount: only root can ... "

Solution Verified - Updated -

Issue

  • User root fails to run command mount with errors below:
# id root
uid=0(root) gid=0(root) groups=0(root)

# mount -a
mount: only root can use "--all" option (effective UID is 1002)

# mount -vvv /dev/mapper/rhel_test-home /home
mount: only root can do that (effective UID is 1002)

Environment

  • Red Hat Enterprise Linux (all versions)

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