SOLVED Make a client have access to everything on the server.

Status
Not open for further replies.

Bjonness406

Dabbler
Joined
May 30, 2015
Messages
28
Hello,

Is it possible to make a client have access to everything on my FreeNAS server, without touching the owner group and user at the storage part? I want to make it with only touching the Sharing part.

I have set up a NFS share right now, look at the picture. But on the machine (192.168.1.108), I cant find my files,only the sub-directories to "Plex-Server", which is "movies", "Tv Shows", "Pictures" etc
So I can find "movies", "Tv Shows", "Pictures" etc, but not their sub directories which is "Photo -xx person", "Photo - yy person", "Movie xx" etc.

I want to be able to do this so I can back up my entire FreeNAS server to Crashplan with a ubuntu computer, without dealing with owner group/user (because I like how it is set up right now.).
Is this possible? I prefer NFS share if it is possible.

Freenas.png
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
You need to mount the nfs export as a user that can read all files. root user might be simplest. Just maproot on your share to root then mount as uid 0.
 

Bjonness406

Dabbler
Joined
May 30, 2015
Messages
28
I have set "Maproot User" to a user that has access to most of the files on the server, but I still can't find any more files.
I think it is something wrong with my set up on NFS, because I can't even find something in the folder "Movies", that is set up 775, so I should have access to it anyway.
Just in case, I post how i set it up on Ubuntu, maybe I did something wrong? (I did all in terminal)
1. sudo apt-get update
2. sudo apt-get install nfs-common
3. sudo mkdir -p /mnt/nfs/home
4. sudo mount -t nfs 192.168.1.3:/mnt/Plex-Server /mnt/nfs/home/

After that all my files inside "Plex-Server" are browsable, but not the files inside of there again.
Plex-Server --> Movies --> Then I can't see anything here.
 

Robert Trevellyan

Pony Wrangler
Joined
May 16, 2014
Messages
3,778
I cant find my files,only the sub-directories to "Plex-Server", which is "movies", "Tv Shows", "Pictures" etc
Are these child datasets? If so, it won't work because NFS shares don't provide access to child datasets.
 

Bjonness406

Dabbler
Joined
May 30, 2015
Messages
28
Are these child datasets? If so, it won't work because NFS shares don't provide access to child datasets.
Yeah, it is child dataset, is it not possible? Hmm... Is it a limit of Freenas or NFS?
Do you recommend cifs or afp svare then, and do both support child datasets?
 

Robert Trevellyan

Pony Wrangler
Joined
May 16, 2014
Messages
3,778
Is it a limit of Freenas or NFS?
I think it's NFS, could be ZFS.
Do you recommend cifs or afp svare then, and do both support child datasets?
Um, not sure, try it and see. Personally I have found NFS to be the most stable share with OS X, and CIFS works fine for me with Windows 7 (but not at the same time on the same dataset, that's a no-no).
 
Joined
Jan 9, 2015
Messages
430
CIFS allows you to see the children.
 

Bjonness406

Dabbler
Joined
May 30, 2015
Messages
28
I think it's NFS, could be ZFS.

Um, not sure, try it and see. Personally I have found NFS to be the most stable share with OS X, and CIFS works fine for me with Windows 7 (but not at the same time on the same dataset, that's a no-no).
Is it a no-no to have CIFS share, and a NFS share at the same time on the same dataset? Or did i missunderstand you?

CIFS allows you to see the children.
Thanks man :D Do you know if Apple share alles this too?
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Is it a no-no to have CIFS share, and a NFS share at the same time on the same dataset?
Yes, unless one is strictly read-only, damage will probably occur.
 
Joined
Jan 9, 2015
Messages
430
I do not know about AFP as I don't have any Apple products.
 

Bjonness406

Dabbler
Joined
May 30, 2015
Messages
28
Thanks guys.

I am going to set it up with a CIFS share, but it is possible to make a specific share to give access to the whole server, og do I need to make a user that has access to the whole server?
Is there any way to make a user have access to the whole server, without adding him to all groups?

Why is it bad to have mulitple share at the same time? What is the worst thing that can happen? (I am bad at google search in english, so if you find something, please link it)
 
Joined
Jan 9, 2015
Messages
430
You can share the root dataset, but permissions will still apply.
 

Robert Trevellyan

Pony Wrangler
Joined
May 16, 2014
Messages
3,778
Why is it bad to have mulitple share at the same time?
Each protocol uses its own method for things like locking access to files, so the risk of corruption is higher. As @Ericloewe said, if all but one are in read-only mode, the risk is much lower.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
You can share the root dataset, but permissions will still apply.
Not a good idea. A better option would be to make a dataset, share that, and then make datasets within that dataset.
 
Joined
Jan 9, 2015
Messages
430
Not a good idea. A better option would be to make a dataset, share that, and then make datasets within that dataset.
I agree, but nothing about the OP question seems like a good idea.
 

Bjonness406

Dabbler
Joined
May 30, 2015
Messages
28
I agree, but nothing about the OP question seems like a good idea.
Can you tell my why? I want to learn :)

Anyway, I am using CIFS share on all of my datasets now, except on that I use AFP on for Time Machine.
I will make the CIFS share on Time Machine read-only, is it good then? Or should I change something? Just tell me if you have better ideas ;)
 
Joined
Jan 9, 2015
Messages
430
Can you tell my why? I want to learn :)
Well, it sounds like you need to spend some time learning about user permissions and how they work. The questions that you were asking in the first post suggest that you need to study up a bit. I don't mean anything bad by the comment above, just pointing out things. I'd rather be up front and honest with you than lead you down a path of heartache.
Anyway, I am using CIFS share on all of my datasets now, except on that I use AFP on for Time Machine.
I will make the CIFS share on Time Machine read-only, is it good then? Or should I change something? Just tell me if you have better ideas ;)
I personally don't know, but from what I've read on here that it should mitigate any problems. It is hard to "tell" you what will be best for you. Sometimes you just have to read up and figure out what is the right path for you. I don't mind helping to point you in the right direction, but ultimately it is up to you to decide. Setting up a whole servers user permissions can be a lengthy, time consuming task. It can also be hard for you to convey what you are trying to accomplish and for us to turn around and give out a step by step answer to something like this.

Again, I'm willing to help. Just need a little better description of what you are trying to do.
 

Bjonness406

Dabbler
Joined
May 30, 2015
Messages
28
I understand you man, thanks for at telling me :D

Anyway, I did get what I asked for to work, thanks again guys :D
 
Status
Not open for further replies.
Top