NFS shares permissions again

kafar

Dabbler
Joined
Aug 8, 2011
Messages
17
Hello folks,

I want get access to the same dataset (audio content) from to boxes. The first one is linux pc. Here i need full nfs rights. Second one is android box and here
i want only nfs read permissions. Do I need two different users and groups on truenas with different permissions on dataset? And what nfs share permissions and features should be set for this two boxes especially for android one ?
Is it possible to show me the way to solve this problem.

Mark
 

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
The first one is linux pc. Here i need full nfs rights.
Either change the owner of the files to the same user as the Linux PC or mount as root and enable maproot option (not recommended).

Second one is android box and here
i want only nfs read permissions. Do I need two different users and groups on truenas with different permissions on dataset?
Well, if you only need read permissions, that's easy. I think, by default, most files should be created with read permissions for everyone already, so you shouldn't have to do anything special.
You just have to make sure the path leading to the files are also readable by everyone.

And what nfs share permissions and features should be set for this two boxes especially for android one ?
It's just basic UNIX permissions unless you're talking about NFSv4, which would require Kerberos and way more complex to set up.

Is it possible to show me the way to solve this problem.
I kinda' roughly told you how.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
Either change the owner of the files to the same user as the Linux PC or mount as root and enable maproot option (not recommended).
You can technically also specify a "mountall" parameter and make that the owner of the dataset. Do note that this basically removes the fig-leaf of permissions that is on NFS without kerberos and also removes ability to determine who created files based on ownership.
 
Top