NFS share

Status
Not open for further replies.

Halfe

Explorer
Joined
Apr 24, 2013
Messages
94
Hi.

i'm trying to solve a read write issue with a NFS share.

So far i can do read write execute with my own user .

Code:
 ls -l
total 3
drwxrwxr-x  2 root  Media  2 May 27 09:33 ./
drwxrwxr-x  4 root  Media  4 Nov  7  2014 ../
% mkdir 1
% ls -l
total 3
drwxrwxr-x  3 root  Media  3 May 27 09:56 ./
drwxrwxr-x  4 root  Media  4 Nov  7  2014 ../
drwxr-xr-x  2 Lars  Media  2 May 27 09:56 1/


but when I su, I dont get permission to do the same thing even root has access to the group.

Code:
% su
Password:
# mkdir 2
mkdir: 2: Permission denied
# id root
uid=0(root) gid=0(wheel) groups=0(wheel),1002(Media)


that is the same thing when in jail. that root don't have access to the shares
I want to have this so that i dont have to change the user on sonarr to make it have access to the shares.
how to solve this?
 

Halfe

Explorer
Joined
Apr 24, 2013
Messages
94
I'm using

Mount_nfs ip_adress:/network_path /mount path

No other settings
 
D

dlavigne

Guest
Nope, I mean the settings on the FreeNAS side, all of them for that share.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Over nfs root usually gets squashed to some other user for security reasons. Usually it gets squashed to nobody:nogroup and in your case that makes the user fall under the 'other' category. This category doesn't have write permissions so this is why you are seeing the error.
 

Halfe

Explorer
Joined
Apr 24, 2013
Messages
94
how do i change it so that root get permission to RWE
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
here are your options:
1. modify the export to squash to something that has permisisons.
2. modify the permissions of folder to allow other to have write permissions.
3. don't use root
 
Status
Not open for further replies.
Top