• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

create a system account below uid 500 on RHEL/CentOS/Scientific Linux

March 27, 2014 by Sharad Chhetri Leave a Comment

In this post we will know,how to create a system account below uid 500 on Red Hat based operating system.In Red Hat based operating system,the system account are below UID 500.
The UID below 500 are reserved for system use ,it should not be assigned to other users.

We can easily check the system user account and UID information in /etc/passwd file.

In below given screenshot,here squid is the system user.When we install squid proxy , by default squid user get created. And the squid user will get the UID below 500

passwd file

When a developer create any software and require system user,the uid should be below 500.In some cases,some software require manual addition of system account in system.

The below given command will create the system account and randomly provide the UID below 500 to newly created system user.

We will use option -r with useradd command

useradd -r User-name

for example, I will create a user called sharad and system will assign the UID automatically to user below 500.

[root@localhost ~]# useradd -r sharad
[root@localhost ~]# 
[root@localhost ~]# id sharad
uid=497(sharad) gid=496(sharad) groups=496(sharad)
[root@localhost ~]#

Note: With the help of id command,you can get information like UID,GID and groups in which user is member.

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. How to lock and unlock user account in linux
  2. How to show user account password expiration detail on Linux
  3. How to list users above or below particular user id
  4. 500 OOPS: vsftpd: refusing to run with writable root inside chroot()
  5. Create new swap file on CentOS 7 / RHEL 7
  6. semanage command not found in CentOS 6 and RHEL 6
  7. Command to create and delete group in Red Hat and CentOS linux
  8. Linux command : To create new directory/folder
  9. netstat command not found on CentOS 7 and RHEL 7 (Red Hat Enterprise Linux 7)
  10. Solution : semanage command not found

Filed Under: Linux, Linux Commands Tagged With: linux command, UID

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Command

What is Linux Internal And External Command

Linux Basic Commands With Examples For Every Beginner

tr command to convert lines to space , tab and vertical tab

smbpasswd command not found on CentOS 7 and RHEL 7

Solution : semanage command not found

Unix / Linux : How to print duplicate lines from file

More Posts from this Category

You Might Like These Articles!

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

libfuse

dlopen(): error loading libfuse.so.2 – Got Error On Ubuntu

Failed to open/create the internal network

VirtualBox Error: Failed to open/create the internal network

Always Useful Tips And Tricks

linux release renew dhcp assigned ip address

How to convert float to integer number

WordPress host IP changed not able to open wp-admin and site page looks scattered

Protect from w00tw00t.at.blackhats.romanian.anti-sec

How to empty Trash through command line in Ubuntu

How to set JAVA environment variables in Linux

The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form

Explore 90+ Article On "Linux Tips And Tricks"

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy