Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-667

grantSudoToAdminUser

    XMLWordPrintableJSON

Details

    Description

      We're trying to use the AdminAccess builder to create a user that can execute commands on nodes via sudo for configuration and package installation.

      However, it looks like /usr/sbin isn't in the path for the added user - since sudo reboot fails with:

      sudo: reboot: command not found
      

      We're setting up the user as below and passing to runScript:

          val bootInstructions = AdminAccess.builder()
            .adminUsername(request.sshUserName)
            .adminPublicKey(Main.conf.publicKeyString)
            .adminPrivateKey(Main.conf.privateKeyString)
            .grantSudoToAdminUser(true)
            .build()
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            ssk2hd Sunil Shah
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: