Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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 :: Set Up Your Username and Email in Git Command 
Shell :: android studio not running ios simulator 
Shell :: Syntax error: word unexpected (expecting "in") 
Shell :: diff between two files 
Shell :: why upgrade ubuntu then frequently shows this message "It iwating for cache lock: Could not get lock /var/lib/dpkg/lock.frontend. 
Shell :: installing nginx on docker container 
Shell :: install carla for manjaro 
Shell :: bash ps sort by time 
Shell :: how to uninstall from /var to increase its size 
Shell :: set up vm arch 
Shell :: batch disable windows system recovery 
Shell :: tiny core shutdown 
Shell :: elasticsearch diff between must and should 
Shell :: git remove repo from folder 
Shell :: Linux Find word and replace text 
Shell :: How can you install Flutter? 
Shell :: docker images remove dagling 
Shell :: git grep line only 
Shell :: Read-only filesystem disk kubuntu 
Shell :: Linux waitptid function 
Shell :: c ide linux online 
Shell :: store all terminal output in a file 
Shell :: cat file content after pattern 
Shell :: recutils add field in record 
Shell :: def_daemon[19685]: segfault at 7f4d6811b7f0 ip 00007f4d6811b7f0 sp 00007f4d65bcc808 error 15 
Shell :: dependency problems - leaving unconfigured Errors were encountered while processing: 
Shell :: telnet in shell script 
Shell :: iris eyesaver 
Shell :: loop over shell parameters 
Shell :: how to generate a resolver in the cli 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =