Task -Custom Apache User Setup

ยท

2 min read

Problem:

In response to heightened security concerns, the xFusionCorp Industries security team has opted for custom Apache users for their web applications. Each user is tailored specifically for an application, enhancing security measures. Your task is to create a custom Apache user according to the outlined specifications:

a. Create a user named rose on App server 2 within the Stratos Datacenter.

b. Assign a unique UID 1990 and designate the home directory as /var/www/rose.

Please ensure to review the task instructions carefully and modify the commands according to your specific server, username, and other relevant details.

Solution:

  1. ssh into the app server 2

  2. Use below command

      sudo useradd -u 1990 -d /var/www/rose -m rose
    
    • Breakdown of the command:

      • -u 1990: Sets the UID to 1990.

      • -d /var/www/rose: Sets the home directory to /var/www/rose.

      • -m: Creates the home directory if it does not exist.

      • rose: The username to be created.

  3. Check if the user is created or not cat /etc/passwd | grep rose You should see the entry for rose user in passwd file

About me

Hi I am Sachin Khamitkar and I am a passionate devops engineer and an Expert Support Engineer. As a DevOps enthusiast and technology fan, I am passionate about automating workflows, optimizing infrastructure, and improving deployment processes. I love sharing insights on cloud strategies, containerization, and continuous delivery. With 6 years of experience in Technical and Application Support, I have a strong foundation in DevOps practices. I excel in root cause analysis, SLA adherence, and enhancing software stability. My skills include log analysis, SQL reporting, and CI/CD pipeline optimization. I have a proven track record in deploying builds, patches, and maintaining production environments. Additionally, I bring expertise in incident, problem, and change management following ITIL standards. If you're as excited about DevOps as I am, let's connect ๐ŸŒŸ me on LinkedIn๐Ÿ”—๐Ÿ’ผ, GitHub๐Ÿ’ป๐Ÿ”—, and Email๐Ÿ“ง for more tech tips, tutorials, and exciting projects! Let's innovate together and drive the future of DevOps! ๐Ÿš€๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ’ก

ย