You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
useradd -p `perl -e 'print crypt("password", "salt"),"\n"'` -g build $USERNAME -s /bin/bash # create a user with default password, primary group build and bash as the shell
usermod -G sudo -a $USERNAME # add the user to the sudoers group
echo "$USERNAME ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers # allow the user to sudo without password