2024-03-03 13:31:55

by Martin Wege

[permalink] [raw]
Subject: export(5) all_squash, only new files squashed, or all uid/gids?

Hello,

How does the export(5) option all_squash export option work? Does it
only squash the uid/gid of new files to nobody/nogroup, or will it
turn the uid/gids of all existing files in the exported tree to
nobody/nogroup?

Thanks,
Martin


2024-03-07 14:01:16

by Mkrtchyan, Tigran

[permalink] [raw]
Subject: Re: export(5) all_squash, only new files squashed, or all uid/gids?

Hi Martin,

The option all_squash does not affect files or directories.
It replaces RPC request credentials sent by nfs client with
user nobody:nobody. The newly created files will be owned by
nobody:nobody, if parent directory permission
(and export rules) allow to do so.

Best regards,
Tigran.



----- Original Message -----
> From: "Martin Wege" <[email protected]>
> To: "Linux NFS Mailing List" <[email protected]>
> Sent: Sunday, 3 March, 2024 14:31:37
> Subject: export(5) all_squash, only new files squashed, or all uid/gids?

> Hello,
>
> How does the export(5) option all_squash export option work? Does it
> only squash the uid/gid of new files to nobody/nogroup, or will it
> turn the uid/gids of all existing files in the exported tree to
> nobody/nogroup?
>
> Thanks,
> Martin


Attachments:
smime.p7s (2.76 kB)
S/MIME Cryptographic Signature