Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Persistent Permission Issues with /mnt/user on Unraid

Featured Replies

Hello Unraid Community,

I'm encountering persistent permission issues with the /mnt/user directory on my Unraid server, which is affecting my ability to create directories and manage shares. Despite multiple attempts to resolve the issue, I keep seeing d--------- permissions on /mnt/user, and I am unable to create directories within it.

System Details:
- Unraid version: [Your Unraid version]
- ZFS pool: dob
- Disk setup: Using ZFS mirror with two Samsung SSD 990 PRO 2TB drives

Steps Taken So Far:
1. Unmount and Remove /mnt/user:
   ```
   umount /mnt/user
   rm -rf /mnt/user
   ```

2. Recreate and Set Permissions:
   ```
   mkdir -p /mnt/user
   chmod 777 /mnt/user
   chown nobody:users /mnt/user
   ```

3. Remount Using shfs:
   ```
   /usr/local/bin/shfs /mnt/user -disks 2 -o noatime,allow_other -o remember=0
   ```

4. Check Permissions:
   ```
   ls -ld /mnt/user
   ```

Observations:
- After following the above steps, the /mnt/user directory still shows d--------- permissions.
- Attempting to create directories under /mnt/user results in "No such file or directory" errors.
- Using the newperms tool does not resolve the issue:
  ```
  /usr/local/sbin/newperms /mnt/user
  ```

Additional Steps Tried:
- Restarted Samba and NFS services:
  ```
  /etc/rc.d/rc.samba restart
  /etc/rc.d/rc.nfsd restart
  ```

- Verified ZFS pool status:
  ```
  zpool status dob
  ```

- Rebooted the system:
  ```
  reboot
  ```

Questions:
1. Are there any additional steps or tools I should use to diagnose and fix this permission issue?
2. Is there a recommended way to reset or reconfigure the /mnt/user directory to ensure it works correctly?
3. Could this issue be related to how Unraid handles user shares and file permissions when created via the command line?

Any insights or suggestions would be greatly appreciated!

Thank you in advance for your help!

Solved by JorgeB

  • Community Expert
  • Solution

Unraid creates that folder with the correct permissions at every boot, so possibly you have something mapped to that changing them, like a container.

  • Author

Thank you! turning off docker let me change the permissions.

  • Author

Any idea on how I could find the container causing this?

  • Community Expert

Start with any container to which you gave access to the entirety of /mnt/user (which you would usually never want to do).

Nothing should create directories in /mnt/user, those should be created via the shares tab, then you give apps access to directories inside those.

Edited by Kilrah

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.