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.

[SEMI SOLVED] unraid 5b14 - mounting shares in redhat and permissions issues

Featured Replies

First, love this unraid thing, clever.  But....

 

I have been going through the forums, googling, gagging, etc.  Here is what I am trying to accomplish and I am hoping someone has faced this and figured it out, or can at least point and laugh at what Im doing wrong.

 

Im using the base install from a usb stick.  Ive added the simple features skin but thats all.

I have a user share set up named "Video".

In my experimentation I have created a user account "doug" for my 3 linux hosts (2 running xbmc  and 1 running various things, like sickbeard and sabnzb) to use when mounting the Video folder.

The utilities that need full control run on the redhat host under the id of "robot"

I also sometimes need to hit this from a windows machine.

 

From these linux hosts I am mounting it in the fstab file as follows:

//tower/Video /mnt/video cifs username=doug,password=password,uid=robot,gid=robot,rw 0 0

This mounts the share just fine and I can read the files, and even put files on the Video share without a problem.

The shares are exported via Samba using public security

 

Now, for the challenge.

 

If the files were put on the share by the linux hosts the windows box cannot access them, the files are owned by 'doug'.

If the files were put on the share by the windows hosts the linux machines cannot modify/delete them (sickbeard for instance wants to delete old files for higher quality replacements), these files are owned by 'nobody'.

 

 

Is this a side effect of the permissions issues I have been reading about thats addressed by the 'New Permissions' script?  Doesnt seem like it to me, but if thats the suggestion ok.

 

What I think I need is some way to log in the linux hosts as the 'nobody' user rather than the 'doug' user.  But through the web interface i have no access to that account so I cannot set a password.

 

Ideas?  any help or guidance appreciated.

  • Author

Ok found a way to do this...

 

Samba = bad for this purpose, so I used NFS on the linux end.

 

In /etc/fstab on the redhat client machine I have the following:

tower:/mnt/user/Video /mnt/video nfs vers=3,rw 0 0

 

Since the nfs export on the unraid end is already set to all_squash all connections to use the nobody:users credentials who i connect as from the client end doesnt matter.  Content created by the redhat box is now readable by the windows hosts and windows content can be managed by the redhat host.

 

Cheers

  • Author

Well, it looked good, but Im getting stale nfs file handles left and right... Would still love some advice if any is to be had.

 

The nfs approach handles the permissions aspect, but the stability is another matter...

 

ls: cannot access /mnt/Video/test2: Stale NFS file handle

 

This happens on the mount itself, and on subfolders anywhere in the tree it seems.  One folder might be good, another folder, or even file fails.  All drives are currently spun up and set to stay that way for now.

Well, it looked good, but Im getting stale nfs file handles left and right... Would still love some advice if any is to be had.

 

The nfs approach handles the permissions aspect, but the stability is another matter...

 

ls: cannot access /mnt/Video/test2: Stale NFS file handle

 

This happens on the mount itself, and on subfolders anywhere in the tree it seems.  One folder might be good, another folder, or even file fails.  All drives are currently spun up and set to stay that way for now.

This issue is being investigated in the -rc2 announcement thread. 

Archived

This topic is now archived and is closed to further replies.

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.