Thanks for any help; we should be able to use these types of mounts forfile areas, right?
Re: NFS File Area Issue
By: paulie420 to All on Mon Mar 22 2021 07:37 pm
Hey Paulie,
Thanks for any help; we should be able to use these types of mounts f file areas, right?
I dont really understand the error might be helpeful to get the actual error -but to answer your question - yes.
My fileareas are an NFS mount, although I havent tried downloads - but I dontthink it should be an issue.
Thanks for any help; we should be able to use these types of mounts f file areas, right?
I dont really understand the error might be helpeful to get the actual error - but to answer your question - yes.
...ëîåï
Yes, you can use NFS mounts for your file areas, I have a bunch on
mine. Also you can use symlinks and bind mounts too. As long as the FS
can be seen from the normal navigation and mystic has read/write access
to the areas, it should be all gravy.
MeaTLoTioN
mL has recently seen some of my knowledge with Linux; I know a lot, andthen.. I know so little. Even I should have known this... I didn't give ANY access consideration to the NFS drive. So thats most likely where Mystic is failing.
My BBS is on user 'pi'... and my NAS is on a user 'paulie420'. Lol, the/ROMs folder is listed 'paulie420 : users'. And I suppose I'm gonna need a whole lesson on permissions - which I can do mostly on my own time, but...
Re: Re: NFS File Area Issue
By: paulie420 to deon on Wed Mar 24 2021 09:25 am
Howdy,
mL has recently seen some of my knowledge with Linux; I know a lot, athen.. I know so little. Even I should have known this... I didn't give ANY access consideration to the NFS drive. So thats most likely where Mystic is failing.
My BBS is on user 'pi'... and my NAS is on a user 'paulie420'. Lol, t/ROMs folder is listed 'paulie420 : users'. And I suppose I'm gonna
need a whole lesson on permissions - which I can do mostly on my own
time, but...
So cross device NFS is a pain...
At the end of the day, file access talks UID/GID (numbers) - just like
DNS names resolve to an IP address so 2 things can talk to each other.
On all my systems, my user is "deon", which is always the same UID (say 2000), and my "users" also has the same GID (say 1000). Then when I save
a file as deon:users on any system - if that system exports a filesystem via NFS, any other system I can still access it (because deon:users = 2000:1000).
So if you are sharing stuff to your PI - and the files are owned paulie420:users, and the Pi application is running as pi:users - while "paulie420" and "pi" can have different UIDs - your users group should have the
same GID. Then if you files and dirs have g=rwx (then your "pi:users"
user can read your files on the NAS that are owned by paulie420:users).
(Its perfectly legal that the UID for "pi" and "paulie420" be the same number, then u=rwx would apply.)
IE: It doesnt matter what the text is for a user or a group (that's for
us humans), its the IDs that they map to that is important for access control.
Now, if you doing stuff as "root", then there is a different issue to address -
since NFS can map root to "nobody" if nfs_root_squash is used (its a protective
thing, but it can trip you up every now and again).
So cross device NFS is a pain...
Ok, but... I'm following a lot of what you just typed. I am familiar withlike... level 1 permissions on a local box. I'm not great with (or, I just haven't had a need until NOW...) groups or userIDs. However, I've added my user
the NAS system and understand groups a LITTLE.NFS permissions and think that I'll be able to figure things out.
So... I do know that my UID is 1001 on the NAS system. I'm reading about
I'm probably off base, but... could I create a 'pi' user with read/writeaccess on the NAS system, which is the NFS?
So imagine you are logged into your NAS - and in a directory it has a
file like this:
Where:
* The size of "My_File" is 1561 bytes in size,
* Anybody with UID can read/write (the first rw-)
* Anybody with GID can only read (the second r--)
* Any user who is not the UID and is not in a group with the GID has no access (the third ---)
So if you want to be able to read the file, you must:
* Be a member of a group that has GID 1000, OR
* Be a user with UID 1001.
Sysop: | Saxainden |
---|---|
Location: | Littleton, CO |
Users: | 30 |
Nodes: | 10 (0 / 10) |
Uptime: | 15:12:36 |
Calls: | 359 |
Calls today: | 1 |
Messages: | 36,383 |