ubuntu adduser
sudo adduser USERNAME
# choose password
# other fields can be left empty
sudo usermod -aG sudo USERNAME
# change user to check if everything is ok
su - USERNAME
whoami
# output > USERNAME
sudo whoami
# output > root or an error
# if error switch back to the other account
# and do the following to modify /etc/sudoers
sudo visudo
# find a line like "root ALL=(ALL:ALL) ALL" (or similar)
# add an identical line for USERNAME, like
# "USERNAME ALL=(ALL:ALL) ALL"
Ctrl+O, Ctrl+X # save and exit
# change user to check if everything is oksudo adduser username
sudo usermod -aG sudo username# add a user and set a password
adduser USERNAME
# add user to sudoers / sudo groupe with command below
usermod -aG sudo USERNAME
sudo adduser userNameHere
Also in C++:
- how to set up python virtual environment
- apache restart ubuntu
- File "/tmp/pip-install-6MDHCx/sentence-transformers/setup.py", line 3, in
- check that redis is running
- bash split and get last
- remove a folder from git tracking
- github wafw00f
- remove directory powershell
- powershell environment variables set
- set global git ignore
- install vm guest additions ubuntu
- ubuntu navigate to directory in windows
- npm installl chalk
- clean pendrive using diskpart
- react-router-breadcrumbs-hoc@^3.2.3 yarn upgrade
- problem with dependency and installation mariadb-server in ubuntu server 18.04LTS
- how to install vlc in fedora
- ubuntu subsystem windows 10 from cmd prompt
- how to delete dangling docker images
- symlink command
- generate jks certificate
- grep in all files
- update vs code in ubuntu
- will bash script use alias