Commit 97036270 authored by Ralf's avatar Ralf
Browse files

add a script to add tuer users

parent d084286e
if [[ -z "$USER" ]]; then
echo "Usage: $0 username"
exit 1
if [[ "$(whoami)" != "root" ]]; then
echo "Please get root first"
exit 1
adduser "$USER" --disabled-password
sudo adduser "$USER" tuer
cd /home/"$USER"
mkdir .ssh
echo -n "I will now open nano, please paste the SSH key in there! "
nano .ssh/authorized_keys
chown "$USER": -R .
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment