Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

add user to sudoers

usermod -aG sudo username
Comment

add sudo user ubuntu

# add a user and set a password
adduser USERNAME

# add user to sudoers / sudo groupe with command below
usermod -aG sudo USERNAME
Comment

add user to sudoer

sudo grep -B1 -i '^%sudo' /etc/sudoers

# Allow members of group sudo to execute any command
#%sudo	ALL=(ALL:ALL) ALL

sudo adduser <UserNameHere> sudo

or

sudo usermod -aG sudo <UserNAmeHere>

id  <UserNAmeHere>
Comment

PREVIOUS NEXT
Code Example
Shell :: zsh: corrupt history file 
Shell :: open port 3000 ubuntu 
Shell :: install firewall-cmd centos 7 
Shell :: reverse an array in shell scripting 
Shell :: install discord in ubunut 
Shell :: rick roll terminal command 
Shell :: how to check kernel version in linux 
Shell :: how to add exclusion to windows defender command line 
Shell :: check compatible ubuntu nvidia driver 18.04 
Shell :: thunderbird for linux 
Shell :: conda install scikit-learn 
Shell :: kubectl scale deployment 
Shell :: bootstrap npm 
Shell :: vim wsl copy to windows system clipboard 
Shell :: create tar gz file from directory 
Shell :: vlc install linux 
Shell :: certbot remove certificate nginx 
Shell :: run laravel git project 
Shell :: crontab logs centos 
Shell :: how to download workbench for linux 
Shell :: install onenote in ubuntu 
Shell :: weka ubuntu 
Shell :: how to start xampp in ubuntu 
Shell :: Missing essential plugin: org.jetbrains.android 
Shell :: gitignore ios project 
Shell :: ubuntu boot slow 
Shell :: install redis brew 
Shell :: powershell unzip file 
Shell :: chocolatey terraform install 
Shell :: install dependencies @material-ui/lab/Rating 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =