AFP vs NFS re file permissions

Questions about using NAS on Mac OS.
Post Reply
tvs882st
First post
Posts: 1
Joined: Sat Jul 08, 2017 9:00 am

AFP vs NFS re file permissions

Post by tvs882st »

I bought a QNAP Thunderbolt NAS for our family's two iMacs, so we can use either one of them and have access to all of our files the same way as if they were on a local drive / DAS.

The two favoured ways of connecting to a NAS seem to be AFP and SMB. Since I don't have Windows, AFP seemed the correct choice. However, what I also want is the UNIX file permissions to work just as if the NAS was a local drive, i.e. with the Mac's users/groups, and I'm not sure that's possible with AFP:
When I connect via AFP, the files I see/create show up with the NAS user. Fair enough, it seems I'd have to define the same Mac users on the NAS and then each Mac user connects to the NAS using the matching NAS user. However, that still doesn't seem to quite work the same way, for example, I can't even use simple commands like chown, chmod.

So, I connected via NFS and voila, everything just works! The permissions show up as the Mac user's and work just like they would on a local drive. I can happily chown, chmod, do all sorts of stuff I'm used to ;-)
I realise it means I have to have the users/groups on my 2 iMacs defined with the exactly the same UNIX uids/group ids, otherwise hell breaks loose, but I don't mind that for the small number of users in our household.

Is that the only drawback?! NFS seems to work great, but I'm hesistant to go with a choice that doesn't seem to be generally favoured.
- I don't mind the "lack of security" aspect, as the NAS is physically in secure place and the users can be trusted.
- I don't mind the slightly more unusual/technical aspect of the setup, as I have an IT background.
- There's debate around which protocol is slightly faster/chattier, but with Thunderbolt, and fast drives in the NAS, unless we're talking order of a magnitude difference, I'm not worried.

Any advice or confirmation appreciated, thanks!
User avatar
Moogle Stiltzkin
Guru
Posts: 11448
Joined: Thu Dec 04, 2008 12:21 am
Location: Around the world....
Contact:

Re: AFP vs NFS re file permissions

Post by Moogle Stiltzkin »

Refer to the FAQ link in my sig for creating a support ticket. While waiting for an official reply from qnap's own technical support, other users can in the meanwhile chime in here in the thread :)

best regards,

Moogle
NAS
[Main Server] QNAP TS-877 (QTS) w. 4tb [ 3x HGST Deskstar NAS & 1x WD RED NAS ] EXT4 Raid5 & 2 x m.2 SATA Samsung 850 Evo raid1 +16gb ddr4 Crucial+ QWA-AC2600 wireless+QXP PCIE
[Backup] QNAP TS-653A (Truenas Core) w. 4x 2TB Samsung F3 (HD203WI) RaidZ1 ZFS + 8gb ddr3 Crucial
[^] QNAP TL-D400S 2x 4TB WD Red Nas (WD40EFRX) 2x 4TB Seagate Ironwolf, Raid5
[^] QNAP TS-509 Pro w. 4x 1TB WD RE3 (WD1002FBYS) EXT4 Raid5
[^] QNAP TS-253D (Truenas Scale)
[Mobile NAS] TBS-453DX w. 2x Crucial MX500 500gb EXT4 raid1

Network
Qotom Pfsense|100mbps FTTH | Win11, Ryzen 5600X Desktop (1x2tb Crucial P50 Plus M.2 SSD, 1x 8tb seagate Ironwolf,1x 4tb HGST Ultrastar 7K4000)


Resources
[Review] Moogle's QNAP experience
[Review] Moogle's TS-877 review
https://www.patreon.com/mooglestiltzkin
User avatar
schumaku
Guru
Posts: 43579
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: AFP vs NFS re file permissions

Post by schumaku »

NFS is so 1970 ... but of course it works. For some (many) reasons, Apple pushed NetATALK, NetATALK over TCP, and AFP for decades - and does prefer (and default to under some conditions) to SMB for a while.

NFS had some usage in the past due to some "less" protocol overhead, because of a few Apple pro applications bluntly failed over AFP or SMB ... all history. For some reasons, you find virtually nothing on NFS when it comes to macOS, the Apple KB, ...

Disadvantage is the limited to poor interoperability with other QTS Apps
Post Reply

Return to “Mac OS”