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 :: golang 
Shell :: How to use the sort command 
Shell :: configure meld as git mergetool ubuntu 
Shell :: upgrade bash version mac 
Shell :: git set origin 
Shell :: git change commit author 
Shell :: virtualbox ubuntu mouse scroll not working 
Shell :: how to tar 
Shell :: YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid release/repo/arch combination/ 
Shell :: whoami linux 
Shell :: ext-dom missing ubuntu 
Shell :: fedora how to uninstall snapd 
Shell :: github add image in readme 
Shell :: install grafana 
Shell :: chromium on linux 
Shell :: uninstall plesk ubuntu 
Shell :: sveltekit install 
Shell :: git Already up to date. 
Shell :: git merge strategies 
Shell :: bitbucket change commit message 
Shell :: git check which files are committed 
Shell :: git initial commands 
Shell :: git remove all branches except master windows 
Shell :: rmdir directory not empty windows 
Shell :: stop npm server cmd 
Shell :: how to change default crontab editor 
Shell :: linux size of folder and subfolders 
Shell :: next js npm install 
Shell :: git restore all 
Shell :: git reset hard to remote 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =