commit | 8c762cb2cf8e978a46c17d2904ba8e720ffeb8f3 | [log] [tgz] |
---|---|---|
author | Gaurav Shah <gauravsh@chromium.org> | Fri Aug 20 12:28:14 2010 -0700 |
committer | Gaurav Shah <gauravsh@chromium.org> | Fri Aug 20 12:28:14 2010 -0700 |
tree | 28309171bf6f0e37f94e10eabaeba6635ba0b35b | |
parent | 793e1b41563a3dc580dc1fc0030ebebbe039835d [diff] |
set_chronos_password.sh: Add missing sudo while grepping the contents of shadow on root fs. BUG=none TEST=manual Change-Id: Ie0d237c0dc6a2c45ffc33b2fcc22279127854ed9 Review URL: http://codereview.chromium.org/3146025
diff --git a/scripts/image_signing/set_chronos_password.sh b/scripts/image_signing/set_chronos_password.sh index f1b1ac3..ff71e45 100755 --- a/scripts/image_signing/set_chronos_password.sh +++ b/scripts/image_signing/set_chronos_password.sh
@@ -19,7 +19,7 @@ local temp_shadow="$rootfs/etc/tempshadow" echo "chronos:$crypted_password:14500:0:99999::::" \ | sudo tee "$temp_shadow" > /dev/null - grep -Ev ^chronos: "$rootfs/etc/shadow" \ + sudo grep -Ev ^chronos: "$rootfs/etc/shadow" \ | sudo tee -a "$temp_shadow" > /dev/null sudo mv -f "$temp_shadow" "$rootfs/etc/shadow" }