Symptoms
User is attempting to generate standard inventory via Unix Remote inventory
The customer has set up a user for Unix remote inventory with full root access.
The user ID and Password are in the password store and the elevate privilege is set to SUDO
User gets the error "sudo: sorry, you must have a tty to run sudo".
Cause
The error is accurate as tty was required by sudo in based on the customer's current configuration.
Resolution
Set, or add if it is not already there, HKLM\SOFTWARE\ManageSoft Corp\ManageSoft\RemoteExecution\CurrentVersion\AllocateSSHRemoteTTY = true (default is false).
This will add the -t option to the plink.exe command used to ssh into the target machine. It means we will get less tracing output into the Remote Task Manager but will allow the the ssh to proceed in this type of environment.
The other option is to alter the sudoers file on the target machine to not require a tty.
Comments