Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 442 Bytes

create_linux_account.md

File metadata and controls

24 lines (18 loc) · 442 Bytes

Useful Commands for Creating New Linux Account

# Create a new linux account from admin
sudo useradd -m <username>

# Create user password
sudo passwd <username>

# Change shell for the new user
sudo chsh -s /bin/bash <username>

###
# Add the user to sudoers (Optional)
# Step 1) open the file at /etc/sudoers with visudo
# Step 2) append the new username
###

# Step 1
sudo visudo

# Step 2
<username>       ALL=(ALL:ALL) ALL