Skip to main content

Command Palette

Search for a command to run...

Custom Apache User Setup

How to Set Up a Custom Apache User

Updated
•1 min read•View as Markdown
Custom Apache User Setup
A

Infosec Poet and CAP-certified DevOps/SecOps Engineer, passionate about security, creativity, and continuous learning.

Tasks

Create a user named ravi on App server 1 within the Stratos Datacenter.

  • Assign the user a unique UID 1541.

  • Set the home directory for the user as /var/www/ravi.

Steps

  1. First of all let’s get connect with App server 1 with

    ssh tony@172.16.238.10

Password: Ir0nM@n | Also with:

    sshpass -p 'Ir0nM@n' ssh tony@172.16.238.10

  1. Create the User with Specific UID and Home Directory

     sudo useradd -u 1541 -d /var/www/ravi -m ravi
    
    • -u (UID)`

    • -d (Directory)

    • -m ensures the home directory is created

  2. Verify the user ravi with given command.

     id ravi
    

    Also check the home directory:

     ls -ld /var/www/ravi
    

    #linux #uid #happylearning

Linux

Part 2 of 2

In this series, I will cover Linux fundamentals, system administration, command-line tips, troubleshooting, security, and performance tuning.

Start from the beginning

Access Ubuntu Server Shell Using GitHub Actions

How to Access Ubuntu Server Shell with GitHub Actions