1
0
mirror of https://github.com/lukaszlach/kali-desktop synced 2026-08-05 16:12:41 +02:00

task: initial commit

This commit is contained in:
Łukasz Lach
2018-08-15 09:42:32 +02:00
parent a8cd0f9635
commit 5e1cdae0f4
14 changed files with 289 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/with-contenv bash
set -e
USER=${USER:-root}
HOME=/root
if [ "$USER" != "root" ]; then
useradd --create-home --shell /bin/bash --user-group --groups sudo $USER
if [[ "$PASSWORD" == "" ]]; then
PASSWORD=kali
fi
HOME="/home/$USER"
echo "$USER:$PASSWORD" | chpasswd
fi
chown -R "$USER:$USER" "$HOME"
echo "root:${ROOT_PASSWORD:-root}" | chpasswd