The NFS server#
A listener of the protocol NFS (NFS://) makes CrushMFT an NFS server: Linux and Unix machines mount it, and a user who works there sees their CrushMFT folders as part of the file system.
"NFS is served as version 4.1 and with Kerberos only. An account can use it once NFS is among its allowed protocols, under Restrictions in the User Manager."
It is made in IP / Servers, with the usual port 2049.
Why Kerberos only#
Classic NFS believes a client that says "I am user 1000". That fits a closed room of trusted machines and nothing else. CrushMFT's users have rights that must hold, so the NFS server accepts only clients that prove who is calling, with a Kerberos ticket. Each call is then made as one known CrushMFT user, with that user's permissions.
You need a Kerberos realm: a Windows domain, FreeIPA, or an MIT or Heimdal KDC.

Kerberos#
| Setting | What it is | New listener |
|---|---|---|
| Kerberos credential | "An entry of the Kerberos panel. Its keytab has to hold nfs/ followed by the host name clients mount." See Kerberos. | none |
| Trusted realms | "Separated by commas. Left empty, only the default realm of the server's krb5.conf is accepted." | empty |
| Kerberos configuration file | "A krb5.conf, for a machine that has none of its own. One file serves the whole server and the jobs it runs: a listener or a folder that names a different one is refused, and changing it here takes a server restart." | empty |
| Weakest security accepted | "krb5 proves who is calling, krb5i also signs every call, krb5p also encrypts it. A client that mounts with less than this is refused." | krb5p (encrypted) |
| Hours before a client logs in again | how long a proven identity is kept | 10 |
Who is who#
| Setting | What it does | New listener |
|---|---|---|
| Strip the realm from the account name | the principal alex@EXAMPLE.COM is the CrushMFT user alex |
on |
| Principal map (principal=account) | names that differ: a.smith@EXAMPLE.COM=alex |
empty |
| Let a client machine mount as itself (it is shown an empty folder) | a Linux client mounts with its own machine identity before any person uses the mount. With this on, that works, and the machine sees nothing; each user then sees their own folders with their own ticket. | on |
| ID mapping domain | "A file's owner is sent as account@domain. Left empty, the domain is the caller's Kerberos realm in lower case. A client shows the account's name only when this is its own ID mapping domain and it has a user of that name; otherwise it shows nobody. What a user may do is the same either way." | empty |
The owner a client shows for a file is cosmetic. What a user may do is decided by CrushMFT, from the user's permissions, never by owners and mode bits.
Other settings#
| Setting | What it does | New listener |
|---|---|---|
| Read only | nobody can change anything through this listener | off |
| Max connections | 256 | |
| Lease time (seconds) | "How long a client that has gone quiet keeps its open files and locks." | 90 |
Setting it up#
- Make a service principal
nfs/files.example.comin the realm, for the host name clients will mount, and export its keytab. - In Kerberos of the Preferences, add an entry with that keytab, and check it there.
- Add the NFS listener, choose the entry under Kerberos credential, and save.
- In the User Manager, add NFS to the allowed protocols of the users, or of their template.
- On a client that is part of the realm, mount: see Mounting SMB and NFS.
Ports and firewalls#
NFS 4.1 uses one TCP port, 2049, and nothing else. A port below 1024 needs rights the server's account may not have on Linux: forward 2049 to a high port, or allow the Java program to bind low ports. Linux clients can be told another port with the mount option port=.
When a mount fails#
| The client says | Usually |
|---|---|
| "access denied by server" | the client mounts with less than Weakest security accepted: add sec=krb5p to the mount; or the user has no NFS among their protocols |
| "permission denied" for a user in a working mount | the user has no ticket: kinit; or their principal maps to no CrushMFT user |
| "no such file or directory" | a path that is not in the user's folders. The mount point is the top of what the user sees. |
| it hangs | port 2049 closed; clocks more than a few minutes apart |
| files show the owner "nobody" | the ID mapping domains differ. Cosmetic: see above. |
CrushMFT as an NFS client is NFS exports.