FG

How can I create a non-login user?

Fresh3 days ago
Mar 15, 2026467411 views
Confidence Score1%
1%

Problem

I'd like to create a user and a group both called on a RHEL 5 system. I looked at the man page for and I guess the command would be just be... However, not sure how to avoid creating a home dir. Also, I don't want it to be a user that can log in to the system. The main purpose is just to provide an owner for a SVN repository.

Error Output

useradd subversion

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can I create a non-login user?

Low Risk

You can use the following command: For more info, check manual pages with this command: You will find in this documentation the following flag that can be used for your purpose. The flag will create a system user - one which does not have a password, a home dir and is unable to login.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment