Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • Normal user has no access to mounted filesystem.

    Posted on

    I have tried to add second harddrive to an existing RHEL 8 VM so that normal users can have extra space. The steps are:
    - Creating an additional hard disk in the VM storage section
    - Partitioned and formatted it as ext4
    - Created mount point /media/drive2 with mode = 777
    - Created group "drives"
    - Changed /media group to "drives"
    - Created user xxx
    - Added user xxx to "drives" group
    - Added fstab entry: /dev/nvme0n1p1 /media/drive2 ext4 defaults,nosuid,user,x-systemd.device-timeout=20,nodev 1 2

    The new drive comes up and mounted successfully by root and accessible only by root. All of the folder permissions are correct under root login. However, user xxx cannot access the mount point. Doing ls -ltr shows:

    drwxrwsr--. 3 root drives 4096 Jun 26 13:40 media

    ls -ltr /media
    ls: cannot access '/media/drive2': Permission denied
    total 0
    d????????? ? ? ? ? ? drive2

    Is there other access control other than file permissions?

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2025 Red Hat