flatcar-scripts/mod_for_test_scripts/300changePassword
ericli@google.com 66c440d687 Add scripts to modify a rootfs.image for testability.
Review URL: http://chromereview.prom.corp.google.com/1177024

git-svn-id: svn://chrome-svn/chromeos/trunk@91 06c00378-0e64-4dae-be16-12b19f9950a1
2009-10-26 21:40:12 +00:00

15 lines
442 B
Bash
Executable File

#!/bin/bash
# Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# reset password for root and shared user account.
LOCAL_ACCOUNT="chronos"
echo "Reset password for root."
passwd root < test_account.passwd 2> /dev/null
echo "Reset password for ${LOCAL_ACCOUNT}."
passwd ${LOCAL_ACCOUNT} < test_account.passwd 2> /dev/null