company logo

File :: permission - Change permissions

Access permissions supported depend on operating system. Here it is possible to change permissions for owner, group and others.

Implementation details

File  :: permission ( odaba::FilePermissions ownerPermissions, odaba::FilePermissions groupPermissions, odaba::FilePermissions otherPermissions )

The function allows changing access permissions for different types of users (owner, group and others). Permissions will overwrite current permissions completely. The function requires write access rights to the file. Full functionality is supported under Linux, only. Under MS Windows, restricted settings are possible.

  • ownerPermissions - Owner permissions
  • groupPermissions - Permissions for group members
  • otherPermissions - Permissions for others