Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-8895

Enable to setup and launch slave under non-root privilege.

    • Icon: Patch Patch
    • Resolution: Duplicate
    • Icon: Major Major
    • ec2-plugin
    • 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.

            francisu Francis Upton
            monaka Masaki Muranaka
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: