Pete, To disable the tty requirement, you need: Defaults:opsmgrsvc !requiretty
Complete examples that I used to get up and running for RHEL on OM 2012R2 are located: https://social.technet.microsoft.com/wiki/contents/articles/7375.configuring-sudo-elevation-for-unix-and-linux-monitoring-with-system-center-2012-operations-manager.aspx Hope this helps. -Jeffrey ============================================= Jeffrey Miller Senior Systems Administrator The University of Iowa ITS - Enterprise Infrastructure 23 Lindquist Center South Iowa City, IA 52242-1727 (319) 384-3655 ============================================= From: [email protected] [mailto:[email protected]] On Behalf Of Pete Hakesley Sent: Tuesday, December 6, 2016 4:49 AM To: [email protected] Subject: [msmom] Cross Platform Red Hat Installation All, Target Red Hat Enterprise 6 VM using AD PAM authentication. No local users defined. I have been following the guides and have setup my sudoers file #Defaults requiretty opsmgrsvc ALL=(ALL) NOPASSWD: ALL I know it is not best practice but working from a top down approach will add the appropriate commands later I have added a .hushlogin to the root and local user to suppress banner on ssh login. I have test this using [opsmgrsvc@XXXXXXX ~] sudo ls /etc which works successfully However when I try to push the agent using a Unprivileged Setup account I keep getting the banner and the not tty and askpass program. -- Failed during SSH discovery. Exit code: 1 Standard Output: Sudo path: /usr/bin/ sudo: no tty present and no askpass program specified Exception Message: -- Any help would be appreciated as I have a number of the Linux based VM's to manage in SCOM 2012 R2 CU 9 Peter Hakesley | Monitoring & Automation Technical Lead Engineer, Data Centre Services t: +44(0)845 155 6556 ext: 4006 e: [email protected]<mailto:[email protected]> | w: www.scc.com<http://www.scc.com/> a: SCC, CV1, Cole Valley, 20 Westwood Avenue, Tyseley, Birmingham B11 3RZ
