diff options
author | Jorginho <jorginho@lavabit.com> | 2015-09-09 20:51:01 +0200 |
---|---|---|
committer | Jorginho <jorginho@lavabit.com> | 2015-09-09 20:51:01 +0200 |
commit | 8d140ce60ae05caa0d0c262fc33a4e26540abbc9 (patch) | |
tree | dba88688162ae2df0a2d4d780007c8d12833762c /configs/mate/root-image/root/.scriptsInstallation/language/gl/userAccount.sh | |
parent | b4e9cd552ddb482a24bc817da6581b8ff74200f0 (diff) |
Change X11/icewm for Mate desktop
Diffstat (limited to 'configs/mate/root-image/root/.scriptsInstallation/language/gl/userAccount.sh')
-rwxr-xr-x | configs/mate/root-image/root/.scriptsInstallation/language/gl/userAccount.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/configs/mate/root-image/root/.scriptsInstallation/language/gl/userAccount.sh b/configs/mate/root-image/root/.scriptsInstallation/language/gl/userAccount.sh new file mode 100755 index 0000000..aa1d33a --- /dev/null +++ b/configs/mate/root-image/root/.scriptsInstallation/language/gl/userAccount.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +user=$(cat /temporal | grep "userName") + +password=$(dialog --stdout --passwordbox "Introduce o contrasinal para o usuario ${user#*=}" 8 40) + +while [[ $password != $password2 ]]; do + password2=$(dialog --stdout --passwordbox "Repite o contrasinal" 8 40) +done + +useradd -m -g users -G "wheel" -s /bin/bash -p $(openssl passwd $password) ${user#*=} + +exit |