Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

create user ubuntu command line

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 ok
Comment

ubuntu create user

useradd is a low level utility for adding users. On Debian,
   administrators should usually use adduser(8) instead.
Comment

add new user to in Linux Ubuntu

useradd -d /home/me -s /bin/bash -G sudo me
Comment

PREVIOUS NEXT
Code Example
Shell :: is it possible to check with my website if an app is installed? 
Shell :: git remove file from repository 
Shell :: how to init vue 
Shell :: What is user and group in linux? 
Shell :: copy file from one directory to another in linux 
Shell :: cor installation 
Shell :: W: GPG error: http://packages.ros.org/ros/ubuntu xenial InRelease: The following signatures were invalid: KEYEXPIRED 1622248854 
Shell :: cartesian product file shell 
Shell :: ubuntu upgrade libstdc++ 
Shell :: cmake comment 
Shell :: adb restart application 
Shell :: how to add a file in git 
Shell :: how to create matrix in git bash 
Shell :: sed allow root login 
Shell :: postgres change deafult encode 
Shell :: hostapd could not GET IP 
Shell :: jq for xml 
Shell :: how to convert a function from powershell in c# 
Shell :: ubuntu teeworlds 
Shell :: qemu specify raw 
Shell :: cent os install docker 
Shell :: sudo show asterisks 
Shell :: dmesg watch command linxu 
Shell :: unzip mac terminal 
Shell :: linux remove null bytes from file 
Shell :: how to sort in grep in second column in /etc/passwd 
Shell :: what is appmenu-gtk-module 
Shell :: share a given window on android 
Shell :: npm warn ws butterfly install peer dependencies 
Shell :: python rioxarray install 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =