Websites Navigation: Airbit | Shop | m-shell.net
Languages: EN | DE

User Permissions

Permission for certain operations can be granted and denied by the user. Any operation with insufficient permissions will throw ExcNotPermitted. Selecting View→Permissions opens a dialog to edit the permissions.

Each m function presented in the library document lists the permissions it requires, as described in the previous section.

The individual permissions are:

NameBitMeaning
ReadDoc1Read access to files in system.docdir and its subdirectories.
WriteDoc2Write access to files in system.docdir and its subdirectories.
ReadApp4Read access to other application's data.
WriteApp8Write access to other application's data.
FreeComm16Access to free communication resources (receiving messages, Bluetooth).
ReadAll32Read access to all files.
WriteAll64Write access to all files. Granting write access to all files also allows modifying the permissions.
CostComm128Access to chargeable communication resources (sending messages, TCP/IP).
Device256Write Access to the device state (power, reboot).

Thus, if a function requires Read(file), then

  • If file denotes a file or directory in system.docdir or one of its subdirectories, the ReadDoc permission must be granted for the function to succeed.
  • If file denotes a file or directory outside system.docdir or one of its subdirectories, the ReadAll permission must be granted for the function to succeed.
Likewise, if a function requires Write(file), the WriteDoc or WriteAll permissions must be granted.


© 2004-2011 airbit AG, CH-8008 Zürich
Document AB-M-LIB-888
mShell Home  > Documentation  > Manuals