Command
The Command class represents a command right.
Syntax
public interface ICommand : IRight
Methods
The Command class provides the following methods:
This method | Does this |
Commits changes in the right to Active Directory. (Inherited from Right.) |
|
Removes the right. (Inherited from Right.) |
Properties
The Command class provides the following properties:
This property | Does this |
If true, allows the command to start another program or open a new shell. |
|
Specifies the type of authentication required to run a command. |
|
Gets or sets the command string that is matched to identify the command. |
|
Gets or sets the type of pattern used to match the command. |
|
Gets or sets the description of the right. (Inherited from Right.) |
|
Gets or sets the list of groups allowed to run this command using dzdo. |
|
Gets or sets the list of users and groups allowed to run this command using dzdo. |
|
Gets or sets the user this command runs as when executed with dzsh. |
|
Gets the GUID of the right. |
|
Indicates whether the right is readable. (Inherited from Right.) |
|
Resets or removes a default set of environment variables when running the command. |
|
Indicates whether the right is writable. (Inherited from Right.) |
|
Gets or sets the path for matching the specified command name. |
|
Gets or sets the name of the right. (Inherited from Right.) |
|
Determines whether to retain the user’s group membership while executing a command. |
|
Gets or sets the UMask value to use for the command. |
|
Gets or sets the list of environment name-value pairs to add, such as var1=a,var2=b,var3=c. |
|
Gets or sets the list of environment variables to keep or delete. |
|
Gets or sets the weight for this command. |
|
Gets the zone to which this right belongs. (Inherited from Right.) |
Discussion
A command right controls who has permission to run a specific command in a zone.