MBS Plugin Documentation
Statistics - FAQ - Plugin Parts (All, Dependencies) - Class hierarchie
New in Version 7.0 7.1 7.2 7.3 7.4 7.5 7.6 7.7 7.8 8.0 8.1 8.2 8.3 8.4 8.5 8.6 8.7 9.0
The list of the themes, classes, controls, modules, global methods by category, global methods by name, screenshots, licenses and examples.
Platforms to show: All Mac Windows Linux Cross-Platform
The class AuthorizationMBS
class AuthorizationMBS
MBS MacOSX Plugin (Authorization),
class, Authorization, MBS MacOSX Plugin (Authorization), class AuthorizationMBS, Plugin version: 2.8, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: A class to run a root shell on Mac OS X.
Notes:
Some notes from Ilija Injac on this usage of this class:
The main problem for the execution of the perl script was, that perl is not able to find the required perl-modules at execution with the option "-U" (this switch is set for security reasons).
It was also neccessary to include the perl-modules from inside the perl script wich has to be executed.
Inside the Realbasic code i created a AuthorizationItemMBS with the value "/usr/bin/perl":
...
i = new AuthorizationItemMBS
...
Actually it is the same source as in Christians "Authorization 1" example within the "test1" function. And it works !
Function: A class to run a root shell on Mac OS X.
Notes:
Some notes from Ilija Injac on this usage of this class:
The main problem for the execution of the perl script was, that perl is not able to find the required perl-modules at execution with the option "-U" (this switch is set for security reasons).
It was also neccessary to include the perl-modules from inside the perl script wich has to be executed.
Inside the Realbasic code i created a AuthorizationItemMBS with the value "/usr/bin/perl":
...
i = new AuthorizationItemMBS
| i.name | = a.kAuthorizationItemRightExecute |
| i.value | = "/usr/bin/perl" |
Actually it is the same source as in Christians "Authorization 1" example within the "test1" function. And it works !
- property Authorized as Boolean
- property Handle as Integer
- property kAuthorizationFlagDefaults as Integer
- property kAuthorizationFlagDestroyRights as Integer
- property kAuthorizationFlagExtendRights as Integer
- property kAuthorizationFlagInteractionAllowed as Integer
- property kAuthorizationFlagPartialRights as Integer
- property kAuthorizationFlagPreAuthorize as Integer
- property kAuthorizationRightExecute as String
- property KeepRights as Boolean
- property LastError as Integer
- property Release as Boolean
- property StreamHandle as Integer
- method Authorize(rights as AuthorizationItemSetMBS, flags as integer)
- method Authorize(rights as AuthorizationItemSetMBS, flags as integer, byref outrights as AuthorizationItemSetMBS)
- method Available as boolean
- method close
- method closeStream
- method EOFStream as boolean
- method Execute(toolpath as string, parameters() as string)
- method Execute(toolpath as string, parameters() as string, openstream as boolean)
- method ExternalForm as string
- method FlushStream
- method Info as AuthorizationItemSetMBS
- method MakeStreamAsyncron
- method NewAuthorization(rights as AuthorizationItemSetMBS, flags as integer) as Boolean
- method NewAuthorizationFromExternalForm(s as string) as Boolean
- method ReadStream(count as integer) as string
- method SimpleAuthorize
- method SimpleNewAuthorization as Boolean
- method Wait as integer
- method WriteStream(s as string) as integer
Some examples which use this class:
- /MacOSX/Authorization/Authorization to Restore File
- /MacOSX/Authorization/Authorization with Stream
- /MacOSX/Authorization/Authorization with Stream Async
- /MacOSX/IOPMSchedulePowerEvent/Test
The items on this page are in the following plugins: MBS MacOSX Plugin.
Monkeybread Software Realbasic Plugins - Messdiener Nickenich