#!/bin/bash

if [ -z "$1" ]; then
    echo "not enough args" >&2
    exit 1
fi

echo "root:$1" | /usr/sbin/chpasswd
