usermod -a -G sudo user
or
usermod -a -G wheel user
Create a new user accoun: useradd username
Set the user password: passwd username
Add the new user to the sudo group: usermod -aG wheel username
su - username, then run, echo "username ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/username
echo "username ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/username
useradd username
passwd username
username ALL=(ALL) NOPASSWD:/usr/bin/du,/usr/bin/ping
Code Example |
---|
Shell :: tkcalendar install |
Shell :: command to install express graphql |
Shell :: github add image readme |
Shell :: install nginx in amazon linux 2 |
Shell :: scp with ssh key |
Shell :: docker compose command bash permission denied |
Shell :: pupeteer install ubuntu |
Shell :: |
Shell :: restart remote computer |
Shell :: print colored text bash |
Shell :: yum install tesseract-ocr |
Shell :: check git username |
Shell :: functions in linux |
Shell :: use touch id to sudo |
Shell :: |
Shell :: scp HostKeyVerification=false |
Shell :: origin git |
:: login to github terminal |
Shell :: docker unused |
Shell :: terminal command to create new file |
Shell :: wsl2 file location |
Shell :: how to make a script run on boot linux |
Shell :: install brew m1 mac |
:: ubuntu 20.04 wont see OpemSSH |
Shell :: how to install lvm2 on ubuntu |
Shell :: bash division integer |
Shell :: centos set permissions on folder recursively |
Shell :: |
Shell :: dump database docker |
:: custom notification with powershell |