How Do I Change Permissions on a Mount Point in Linux?
Contents

How do I give permission to mount point in Linux?

You can add the user option to /etc/fstab but that only allows the file system to be mounted by any user. It won’t change the permissions on the file system which is why you need chown and/or chmod . You can go ahead and add the user option so that a regular user without sudo can mount it should it be unmounted.

How do I change ownership of NFS mount point?

You need to change the permissions of the mounted filesystem, not of the mount point when the filesystem is not mounted. So mount /var/lib/mysql then chown mysql. mysql /var/lib/mysql . This will change the permissions of the root of the MySQL DB filesystem.

Chloe Bennett

Chloe Bennett

Culture, Media & Entertainment Columnist

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.

Share this article
Twitter Facebook Pinterest