sesudo Utility Execute a Command as Another User on Windows
Valid on Windows
capamsc141
Valid on Windows
The sesudo utility executes commands for one user with the permissions of another user. The sesudo utility borrows the permissions of another user (the
target
user) to perform one or more commands. The utility allows regular users to perform actions such as the mount command, which requires superuser authority.The rules governing user authority to perform commands in this way are defined as access rules in the SUDO class. A record in the SUDO class contains a command script, and can specify both users who are permitted to run the script with sesudo and forbidden users.
Note:
The user executing the program that is invoked by sesudo cannot be changed from PAM Server Control
for Windows.This command has the following format:
sesudo {-h|-list|-do record [params]}
- -hDisplays the online help screen
- -listLists sesudo commands that you can execute. Lists the SUDO records that are defined in the product database that you are authorized to execute.
- -dorecord[params]Specifies that sesudo executes a command as another user
- recordSpecifies the name of the SUDO class record the security administrator gave to the command that you want to execute using the sesudo utility
- params(Optional) Specifies the parameters that you want to send to the command that you are executing