KodeKloud Engineer task: Create a user in Linux

Yash VarmaYash Varma
1 min read

Step 1: Connect to the App Server

ssh app_server_username@server_name

# example
ssh tony@stapp01

Step 2: Switch to root User

sudo su

Step 3: Add the asked user, set the user UID as asked, and set the directory where the user will be created

useradd -m user_name -u UID -d directory_path

# example
useradd -m anita -u 1026 -d /var/www/anita

Step 4: Verify the User

cat /etc/passwd | grep -i user_name

# example
cat /etc/passwd | grep -i anita

Congratulation! you've successfully completed the very first Task!!! ๐ŸŽ‰

0
Subscribe to my newsletter

Read articles from Yash Varma directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Yash Varma
Yash Varma

As a final year undergraduate with a passion for Cloud DevOps Engineering, I bring a strong foundation in cloud computing and automation to the table. I have a solid understanding of cloud platforms such as AWS or Google Cloud and have honed my skills in infrastructure as code (IaC) using tools like Terraform and CloudFormation. I am eager to apply my knowledge of CI/CD pipelines, containerization, and version control systems to contribute to efficient and automated software development processes. I am a quick learner, highly motivated, and excited to embark on a career in Cloud & DevOps, where I can leverage my technical expertise to drive innovation and streamline operations. In addition to my proficiency in cloud technologies, I bring a wealth of experience in crafting efficient CI/CD pipelines, implementing containerization strategies, and managing version control systems. My eagerness to learn, coupled with my inherent motivation, fuels my drive to continually enhance processes and drive innovation in software development. I am poised to make a significant impact in Cloud, DevOps and DevSecOps leveraging my technical prowess to streamline operations and catalyze organizational growth. Well i am a part-time competitive Coder too, I have a solid understanding of Data Structure and Algorithms as well as of Object Oriented Programming. I usually code in C++ and have the familiarity with Java and Python as well as i also have the intermediate knowledge of Rust Programming language too. Some of my coding achievements are 5๐ŸŒŸ @HackerRank || 4๐ŸŒŸ @CodeChef(Max.Rating->1845) || Knight๐Ÿ”ฐ @LeetCode(Max.Rating->1858). Along with all these stuffs i have the understanding of Cloud Platforms like Amazon Web Services (AWS) and Google Cloud Platform (GCP). I was also a Google Cloud's Arcade Facilitator in 2k23 where i had mentored 150+ student's and professional's in gaining knowledge about the Google Cloud Platform (GCP). Moreover I had also won some of the Google Cloud's events like Google CRFP'22 || Google CCP'23.