Software Development Kit (SDK) and API Discussions

Manipulating permissions via ZAPI?

kevingraham
3,184 Views

file-create-directory appears to be the only file-* interface that accepts permissions, documented or otherwise. Does anyone have recommendations on how to manipulate filesystem permissions via zapi (even something via system-cli)?

2 REPLIES 2

aborzenkov
3,184 Views

The obvious question - which permissions? There could be at least three disjoint permission sets - Unix, NTFS and NFS v4. NTFS could be changed using fsecurity command invocation (via system-cli). I do not know if it is possible to directly manipulate Unix or NFS v4 permissions.

kevingraham
3,184 Views

aborzenkov wrote:

The obvious question - which permissions?

Pedantic answer, whichever one is reported in file-info/perm or the file equivalent of file-create-directory/perm  (but yeah, the UNIX permission bits).

Public