I just installed unraid yesterday and am trying to create some shares, mount them on my various devices and move all my data over to the unraid server. Permissions (NFS or SMB) are not acting how I expected they would. Below are my steps, and results. What am I doing wrong?
Create new share called "testshare"
Enable SMB
Set as exportable
Security is "Secure"
Apply
Set SMB user access as andrew with R/W
Apply
ssh into unraid server
cd /mnt/user/testshare
root@unraid:/mnt/user/testshare# ll
total 0
drwxrwxrwx 1 nobody users 18 May 31 15:05 ./
drwxrwxrwx 1 nobody users 6 May 31 14:19 ../
Seems good, directories have the correct permissions
root@unraid:/mnt/user/testshare# touch testfile
root@unraid:/mnt/user/testshare# ll
total 0
drwxrwxrwx 1 nobody users 22 May 31 15:14 ./
drwxrwxrwx 1 nobody users 6 May 31 14:19 ../
-rw-rw-rw- 1 root root 0 May 31 15:14 testfile
Seems good again, correct permissions for files as well
Back to client machine
I create the following entry in fstab
//unraid/testshare /media/unraid/testshare cifs username=andrew,password=mypass,uid=nobody,gid=users,iocharset=utf8 0 0
Proceed to mount all shares
andrew@desktop:/media/unraid/testshare$ cd /media/unraid/testshare
andrew@desktop:/media/unraid/testshare$ ll
total 4.0K
drwxr-xr-x 2 nobody users 0 May 31 15:14 ./
drwxrwxrwx 9 root root 4.0K May 31 14:57 ../
-rwxr-xr-x 1 nobody users 0 May 31 15:14 testfile*
The permissions of testfile are different and my "andrew" user does not have write permission either.
I've also set NFS security to "Public", with the following fstab entry:
unraid:/testshare /media/unraid/testnfs nfs defaults 0 0
and I get the following error:
mount.nfs: access denied by server while mounting unraid:/testshare