Commit Graph

7 Commits

Author SHA1 Message Date
Elly Jones
39ba1e5891 mod_image_for_test: add --{no,}standard_backdoor option.
The default is --standard_backdoor, which installs well-known ssh keys and sets
a well-known root password. Passing --nostandard_backdoor will cause
mod_image_for_test to use ssh keys from ~/.ssh/*.pub instead of the test keys
and not set the root password.

BUG=chromium-os:11744
TEST=Adhoc
Build an image with --standard_backdoor.
ssh -i ${SRC}/src/scripts/mod_for_test_scripts/ssh_keys/testing_rsa root@${DUT}
ssh root@${DUT} with 'test0000'
cat /root/.ssh/authorized_keys # check for the test key
Build an image with --nostandard_backdoor.
ssh -o PubkeyAuthentication=no root@${DUT} # this will fail
ssh root@${DUT} # this should work
cat /root/.ssh/authorized_keys # check for just your keys

Change-Id: Ie92fbc9d3815f478698c8c94d938daca2b5cd53e
Signed-off-by: Elly Jones <ellyjones@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/3449
Reviewed-by: David Rochberg <rochberg@chromium.org>
2011-06-30 11:38:34 -07:00
Chris Sosa
3ccf7410ea Add local dir's to path. SSH and SU respect paths in etc environment
Review URL: http://codereview.chromium.org/1650001
2010-04-12 16:00:17 -07:00
Eric Li
df5bf95764 Change mod_for_test_script to make it work with arm os image.
Get rid of chroot inside this script, and not mounting mod_for_test_scripts into rootfs any more.

The reason caused the failure here is once you chroot into the mounted rootfs directory, all binaries were searched inside the rootfs. But all binaries inside the arm rootfs was for arm hardware, so not executable on the host linux machine(intel).

Review URL: http://codereview.chromium.org/845007
2010-03-15 20:35:59 -07:00
Chris Sosa
6b8f1cf53e Modify scripts to be more informative and add autox/autologin for build script
Review URL: http://codereview.chromium.org/661203
2010-02-26 14:33:52 -08:00
Sean O'Connor
a6db82ed3e Cleanup and merge autotest wrappers.
Review URL: http://codereview.chromium.org/546137
2010-01-27 12:11:08 -08:00
Sean O'Connor
1b2e9a4bca remove trailing whitespace in mod_for_test script (grr, rietveld.)
Review URL: http://codereview.chromium.org/492010
2009-12-10 14:05:20 -08:00
Sean O'Connor
c72b190ad8 create standard ssh keys for root in test-modified images
Review URL: http://codereview.chromium.org/487002
2009-12-10 13:14:59 -08:00