sudo adduser USER sudo usermod -aG sudo USER echo "USER ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/USER sudo cp -R /home/OLDUSER/.ssh /home/USER/ sudo chown -R USER:USER /home/USER/.ssh sudo deluser OLDUSER sudo rm -rf /home/OLDUSER
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up