How to Manually Create a User in Linux and Unix (Step-by-Step Guide)

How to Manually Create a User in Linux and Unix (Step-by-Step Guide)

Written By
i
iDoLinux
Jun 3, 2025

Creating users manually in Linux or Unix is a valuable skill that provides a deeper understanding of how user management works under the hood. While the useradd command offers a quick way to add users, doing it by hand teaches you what changes are made behind the scenes. This method can be particularly useful in minimal environments or custom configurations. For a broader look at foundational commands that help you navigate the terminal more effectively, check out this list of 15 basic Linux commands.

Let’s walk through how to manually create a new user called DarthVader. This process includes editing essential system files such as passwd, shadow, and group, all of which are located in the /etc folder. We’ll also set up a home directory and assign the proper permissions. If you’re also interested in path manipulations or retrieving system info via CLI, refer to this guide on basename and dirname or this article on gathering computer information.

i

iDoLinux

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.