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 :: docker-compose update changes 
Shell :: intel driver arch linux 
Shell :: check wordpress version cli 
Shell :: install redux npm 
Shell :: linux ssh with password in one line 
Shell :: forticlient vpn connected but not working 
Shell :: nvm use globally 
Shell :: install flutter on linux 
Shell :: install phantomjs 
Shell :: how to shutdown computer using linux 
Shell :: powershell http request 
Shell :: zinit 
Shell :: linux subsystem for windows file location 
Shell :: git see pending push 
Shell :: dpkg install deb with dependencies 
Shell :: how to remove all space in file 
Shell :: android create keystore command line 
Shell :: Android sdkmanager not found. Update to the latest Android SDK and ensure that the cmdline-tools are installed to resolve this. 
Shell :: ts-node not found 
Shell :: link folder to github repo 
Shell :: show conflcited files 
Shell :: hugo build 
Shell :: grep from file 
Shell :: git clone specific branch only 
Shell :: discord.py install 
Shell :: grep search text in folder 
Shell :: dollar to pkr 
Shell :: install npm and node on ubuntu 
Shell :: shell trim 
Shell :: diskpart commands 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =