Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Data Structures
OSD_Protection.hxx File Reference
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Macro.hxx>
#include <OSD_SingleProtection.hxx>
#include <Standard_Integer.hxx>

Data Structures

class  OSD_Protection
 This class provides data to manage file protection
Example:These rights are treated in a system dependent manner :
On UNIX you have User,Group and Other rights
On VMS you have Owner,Group,World and System rights
An automatic conversion is done between OSD and UNIX/VMS.

OSD VMS UNIX
User Owner User
Group Group Group
World World Other
System System (combined with Other)

When you use System protection on UNIX you must know that
Other rights and System rights are inclusively "ORed".
So Other with only READ access and System with WRITE access
will produce on UNIX Other with READ and WRITE access.

This choice comes from the fact that ROOT can't be considered
as member of the group nor as user. So it is considered as Other.
More...