high sierra file ownership
I've been developing UNIX software on Macs for a quite a while. They were set up to use NIS ("Yellow Pages") identity management and mounted drives from our network servers like any UNIX machine, using NFS. I'm thoroughly familiar with UNIX permissions, "ls -l", "chmod", "chown", and so on.
But High Sierra can't do that, because the NIS support has been removed. So I have a machine attached to our Windows domain, and I can log in using my Windows account. I can mount drives from our network servers using SMB, and that works OK. But looking at permissions and ownership on the network drives is a bit weird.
On Macs connected to NIS, "ls -l" for a file on a network drive shows me the username that owns the file, and the user group that is associated with the file. It also shows me permissions associated with that file and group.
But on this Mac using SMB, "ls -l" shows me the username I'm logged in as, and the primary group of that username. This is different information, and it isn't about the file that I'm looking at. "ls -l" also seems to be trying to show me the effective permissions I have on the file, but it isn't getting that right.
I tried using the Finder, by selecting a file in its window and using File=>Get Info. That shows me more detailed permissions information under the "Sharing and permissions" heading. It displays "Fetching ..." rather than the name of the user who the file belongs to, and thus has permissions for it. It also doesn't seem to have any way to find out who actually owns a file. On a Mac being used in the ordinary way, that isn't necessary, but it is important when a Mac is part of a distributed multi-platform development environment.
Questions:
- Is there a way to get "ls -l" to display information about a file, rather than about the account that is running the ls command? I can't find anything in the ls manpage.
- Is there a way to get file ownership information, through ls, the Finder, or in any other way?
Thanks,
John Dallman
Mac mini, macOS High Sierra (10.13.4), cbm6w029