-
Patch
-
Resolution: Duplicate
-
Major
-
None
In current code, we must grant remote login by root. And slave daemon is run under root.
But we can't remote login by root in recent versions of Amazon's AMIs. As root login and daemons run under root are not safe, you know.
My patch is enables to run setup and spawn slave under non-root account like ec2-user, hudson, jenkins, ...
Still some commands needs root privilege, so you must install sudo into AMI. Some cases you may have to edit /etc/sudoers file.
the part of /etc/sudoers
ec2-user ALL = NOPASSWD: ALL jenkins ALL = NOPASSWD: ALL
They are already setup if you use Amazon's standard AMI and you login with ec2-user account.