aboutsummaryrefslogtreecommitdiffstats
path: root/setup-acf.in
diff options
context:
space:
mode:
Diffstat (limited to 'setup-acf.in')
-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