Hello, all.

In my Foreman instance, I've set up job execution (Run job) to work.  On my 
hosts, I have ssh PermitRootLogin set to no, as it should be.  We log into 
hosts with our own usernames, then run commands via sudo.  Thus, in order 
to get Run job to work properly, in Foreman I set Administer > Settings > 
RemoteExecution > remote_execution_effective_user=root, 
remote_execution_effective_user_method=sudo, 
and remote_execution_ssh_user=asudouser.  The only way I could see to make 
this work was to set NOPASSWD in asudouser's sudoer  file directive. 
 Clearly, this flies in the face of best practices.  Is there a way for me 
to pass asudouser's sudo password via Foreman, or is there some more secure 
way to make Run job work?

Many thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to