main logo

How to add user in Centos 7 using command line?

Rakshitha
Rakshitha is a cloud hosting expert who helps businesses get the most out of their cloud services. She has experience setting up and managing cloud environments to improve performance and scalability. With her cloud certification, Rakshithe provides clear advice on how to use cloud solutions effectively for better business results.

Can I Use Terminal Commands to Add Users in CentOS 7?

Yes, you can use terminal commands to add users in CentOS 7. However, it is important to note that the process may require additional steps such as setting passwords and assigning privileges. After adding a user, you can also manage their access using reboot and shutdown commands.

Add User in Linux using Terminal

I guess I don’t need to teach you the advantages of Linux. One of the best-in-class open source operating system with top-notch security measures.

It’s free, secure and viruses are rare to dare peep into it. Moreover, it’s flexible and totally free to shape as we like to function it.

But, when it comes to Linux Administration, we may slip by far. As the term implies, administration of anything is bit complex till we become old hands on it.

Hence Linux server administration starts from the very process of creating an account and adding a new user in it.

As we learn anything, let’s start from the beginning of Linux.Here we go, the step by step procedure to add a user in Linux.

Let’s start.
I’m using

[sourcecode language=”plain”]useradd[/sourcecode]

‘command to add a new user in Linux home directory.

Step 1 : Create User

Login to your centos  using putty or console
Putty Login

After connecting the server it will prompted for user name and password as shown the below screen.Provide your user id and password which is having sudoer permissions.In my case it is my root user.

login as: root
root@103.XXX.XXX.XXX’s password:
Last login: Sat Oct 27 07:54:45 2018
[root@srv1 ~]

Now type command useradd followed by the the desired user name.

[root@srv1 ~]# useradd testuser1
[root@srv1 ~]#

Share
Contents

Related Articles

medhacloud logo
USA:
Medha Cloud Solutions LLC
30 N Gould St Ste R, Sheridan, WY 82801,
Phone: +1 646 775 2855

India:
Medha Hosting Private Limited
#74, 7 Th Cross, Krishna Garden InCity Layout. Chikka Kammanahalli, Banneraghatta Road, Bangalore 560083
Phone:+91 93536 44646

E-Mail: support@medhahosting.com
©Medha Cloud 2024. All rights reserved.