Last active
July 16, 2023 16:59
-
-
Save UbuntuEvangelist/14e4eb3a7c56999730822210594791c0 to your computer and use it in GitHub Desktop.
Create a Sudo User on Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo -i | |
groupadd masum | |
useradd -d /home/masum -s `which bash` -g masum -m masum | |
echo "masum ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers | |
passwd masum | |
usermod -aG sudo masum | |
su - masum | |
sudo apt update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment