summaryrefslogtreecommitdiff
path: root/util/configure_users.sh
diff options
context:
space:
mode:
Diffstat (limited to 'util/configure_users.sh')
-rw-r--r--util/configure_users.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/util/configure_users.sh b/util/configure_users.sh
index b6eba0b..3c2fcc4 100644
--- a/util/configure_users.sh
+++ b/util/configure_users.sh
@@ -18,6 +18,16 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
-echo "root:root" | chpasswd
+admin_username=$1
+default_password=$2
+
+
+echo "root:$default_password" | chpasswd
+
+useradd -m $admin_username
+usermod -aG wheel $admin_username
+echo "$admin_username:$default_password" | chpasswd
+
+# passwd -l root # lock the root account if changing /etc/sudoers is implemented
echo "Configured users - OK"