mirror of
https://github.com/darksaid98/ubuntu-server-setup.git
synced 2026-12-01 22:22:31 +00:00
Added test for adding of SSH key
This commit is contained in:
1 parent
841312963c
commit
2779c7f3ee
2 files changed
+32
-2
No files matched your search
+1
-1
@@ -9,9 +9,9 @@ function addUserAccount() {
|
||||
sudo adduser --disabled-password --gecos '' ${username}
|
||||
else
|
||||
sudo adduser --disabled-password ${username}
|
||||
echo "${username}:${password}" | sudo chpasswd
|
||||
fi
|
||||
|
||||
echo "${username}:${password}" | sudo chpasswd
|
||||
sudo usermod -aG sudo ${username}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user