jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Gaul (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (JCLOUDS-667) grantSudoToAdminUser
Date Tue, 27 Jan 2015 05:11:35 GMT

     [ https://issues.apache.org/jira/browse/JCLOUDS-667?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrew Gaul updated JCLOUDS-667:
--------------------------------
    Labels: google-compute-engine  (was: )

> grantSudoToAdminUser
> --------------------
>
>                 Key: JCLOUDS-667
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-667
>             Project: jclouds
>          Issue Type: Bug
>          Components: jclouds-labs-google
>    Affects Versions: 1.7.3
>            Reporter: Sunil Shah
>              Labels: google-compute-engine
>
> 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:
> {code}
> sudo: reboot: command not found
> {code}
> We're setting up the user as below and passing to runScript:
> {code:scala}
>     val bootInstructions = AdminAccess.builder()
>       .adminUsername(request.sshUserName)
>       .adminPublicKey(Main.conf.publicKeyString)
>       .adminPrivateKey(Main.conf.privateKeyString)
>       .grantSudoToAdminUser(true)
>       .build()
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message