OsConsoleCommand

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m
m (Added permissions and delay information)
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{|  width="100%" style="border: thin solid black"
+
{{osslfunc
| colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}'''
+
|threat_level=Severe
|- valign="top"
+
|permissions=false
|'''Threat Level''' || Severe
+
|delay=0
|- valign="top"
+
|function_syntax=integer osConsoleCommand(string command)
|'''Function Syntax''' || <source lang="lsl">
+
|ossl_example=<source lang="lsl">
osConsoleCommand(string command)  
+
</source>
+
|- valign="top"
+
|'''Example(s)||<source lang="lsl">
+
 
default
 
default
 
{
 
{
Line 19: Line 15:
 
</source>
 
</source>
 
This would issue a Login Disable command on the console to prevent logins.
 
This would issue a Login Disable command on the console to prevent logins.
|}
+
|description=This function allows an LSL script to directly execute a command to opensim's console.  Even if the function is available, only administrators/gods can successfully execute it.
  
This function allows an LSL script to directly execute a command to opensim's console.  
+
In addition, one can further restrict this function to only certain administrators/gods. See [[Threat level]] for more information on how to do this.
  
There are no security checks, so it can do anything a user with access to the command console could do, such as changing the avatar passwords, deleting sims, changing the terrain, and just about everything else.  
+
If the script owner does have the necessary permissions to call this function, then they can do anything someone with direct access to the command console could do, such as changing the avatar passwords, deleting sims, changing the terrain, etc.
  
 
This command represents the highest security threat of any OSSL function, giving it a threat level of ''Severe''.  
 
This command represents the highest security threat of any OSSL function, giving it a threat level of ''Severe''.  
  
 
Do not use or allow this function unless you are absolutely sure of what you're doing!  
 
Do not use or allow this function unless you are absolutely sure of what you're doing!  
 
+
|
It is advisable to allow the use of this function for particular users only. See [[Threat level]] for more information on how to do this.
+
}}
 
+
[[Category:OSSL Functions]]
+

Revision as of 20:16, 25 October 2017

integer osConsoleCommand(string command)
This function allows an LSL script to directly execute a command to opensim's console. Even if the function is available, only administrators/gods can successfully execute it.

In addition, one can further restrict this function to only certain administrators/gods. See Threat level for more information on how to do this.

If the script owner does have the necessary permissions to call this function, then they can do anything someone with direct access to the command console could do, such as changing the avatar passwords, deleting sims, changing the terrain, etc.

This command represents the highest security threat of any OSSL function, giving it a threat level of Severe.

Do not use or allow this function unless you are absolutely sure of what you're doing!

Threat Level Severe
Permissions Use of this function is always disabled by default
Extra Delay 0 seconds
Example(s)
default
{
  touch_start(integer num_detected)
  {
    osConsoleCommand("login disable");
    llSay(0, "Logins are disabled");
  }
}

This would issue a Login Disable command on the console to prevent logins.

Personal tools
General
About This Wiki