summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-01-12 11:55:21 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-01-12 11:55:21 +0000
commit3ed9c1d7846d62d6a83b5f9d9f93cbfe2c515ef7 (patch)
tree3d7a6390003d8db5447431dfd3143b7d40093ba1
parentcab2bbfeff13ce10e7040a5c9f19b0b5fa3f4112 (diff)
downloadalpine-conf-3ed9c1d7846d62d6a83b5f9d9f93cbfe2c515ef7.zip
setup-acf: use acfpasswd utility to set password
-rw-r--r--setup-acf.in7
1 files changed, 2 insertions, 5 deletions
diff --git a/setup-acf.in b/setup-acf.in
index 487db00..9e1489f 100644
--- a/setup-acf.in
+++ b/setup-acf.in
@@ -31,16 +31,13 @@ while [ $# -gt 0 ]; do
done
if [ "$create_passwd" != "no" ]; then
- askpassword "root ACF"
mkdir -p /etc/acf
if [ -f /etc/acf/passwd ]; then
mv /etc/acf/passwd /etc/acf/passwd.backup
fi
- # this will show password on process list but we assume user is alone
- # on the box at this stage
- _md5passwd=$(echo -n "$_password" | md5sum | cut -d' ' -f1)
- echo "root:$_md5passwd:Admin account:ADMIN" >/etc/acf/passwd
+ echo "root:x:Admin account:ADMIN" >/etc/acf/passwd
chmod 600 /etc/acf/passwd
+ acfpasswd -s root
fi
# install packages