We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.3.6 or latest master
Vagrant Ubuntu 18.04
In order to perform knife bootstrap with a different root password to the authenticated user chef/chef#10181 it required to hit su - USER command
su - USER
require 'train' train = Train.create('ssh', host: 'node1.test', port: 22, user: 'vagrant', key_files: './.vagrant/machines/default/virtualbox/private_key') conn = train.connection res = conn.run_command('su - root') puts "STDOUT: #{res.stdout}" puts "STDERR: #{res.stderr}" > STDOUT: STDERR: su: must be run from a terminal
it should at least open the new session for suing user.
Raises an error STDERR: su: must be run from a terminal
STDERR: su: must be run from a terminal
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Version:
3.3.6 or latest master
Environment:
Vagrant Ubuntu 18.04
Scenario:
In order to perform knife bootstrap with a different root password to the authenticated user chef/chef#10181
it required to hit
su - USER
commandSteps to Reproduce:
Expected Result:
it should at least open the new session for suing user.
Actual Result:
Raises an error
STDERR: su: must be run from a terminal
The text was updated successfully, but these errors were encountered: