Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

sudo user centos

usermod -a -G sudo user
or
usermod -a -G wheel user
Comment

create a sudo user in centos 7

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
Comment

add user with sudoer centos

echo "username  ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/username
Comment

add user centos 7 sudo

useradd username
passwd username
Comment

add user with sudoer centos

username ALL=(ALL) NOPASSWD:/usr/bin/du,/usr/bin/ping
Comment

PREVIOUS NEXT
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 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =