Wednesday, August 15, 2018
One of the most common task you have to do as a Linux administrator is to add a new user. Especially developers who always wants root access. To accomplish this task you can use the useradd command in the Terminal session. Follow the steps below to add a new user to CentOS.
1. Switch into the root user using su - command
2. Type the following command useradd -s /bin/bash -d /home/john -m john then press "Enter"
useradd is the command to add a new user to CentOS, below is an explaination of what each switch means in the command above
-s --shell SHELL - the login shell of the new account, which is the/bin/bash shell
-d --home-dir HOME_DIR - home directory of the new account, which is /home/john
3. Type ls /home to list the content of the /home directory and you will see the john directory has been created for the user john
4. We've created a new user name john, but he has no password, to set a password for john we can use the passwd command. Type the following command to assign john a password passwd john type in john's password when prompted with New Password: and confirm the password when prompted with Retype new password:
5. Even though john has a login, we still don't know what John's full name is to assign a real name to the login john we can use the usermod -c command to assign the login name john a real name
the command above usermod -c "John Wallace" john assigns the name John Wallace to the user name john
Similar Posts:
1. Switch into the root user using su - command
2. Type the following command useradd -s /bin/bash -d /home/john -m john then press "Enter"
useradd is the command to add a new user to CentOS, below is an explaination of what each switch means in the command above
-s --shell SHELL - the login shell of the new account, which is the/bin/bash shell
-d --home-dir HOME_DIR - home directory of the new account, which is /home/john
3. Type ls /home to list the content of the /home directory and you will see the john directory has been created for the user john
4. We've created a new user name john, but he has no password, to set a password for john we can use the passwd command. Type the following command to assign john a password passwd john type in john's password when prompted with New Password: and confirm the password when prompted with Retype new password:
5. Even though john has a login, we still don't know what John's full name is to assign a real name to the login john we can use the usermod -c command to assign the login name john a real name
the command above usermod -c "John Wallace" john assigns the name John Wallace to the user name john
Similar Posts:
- Linux: Find Out Which Shell You Are Using
- Linux: Switching To root User With The sudo Command On Ubuntu Server
Subscribe to:
Post Comments (Atom)
Search This Blog
Tags
Web Development
Linux
Javascript
DATA
CentOS
ASPNET
SQL Server
Cloud Computing
ASP.NET Core
ASP.NET MVC
SQL
Virtualization
AWS
Database
ADO.NET
AngularJS
C#
CSS
EC2
Iaas
System Administrator
Azure
Computer Programming
JQuery
Coding
ASP.NET MVC 5
Entity Framework Core
Web Design
Infrastructure
Networking
Visual Studio
Errors
T-SQL
Ubuntu
Stored Procedures
ACME Bank
Bootstrap
Computer Networking
Entity Framework
Load Balancer
MongoDB
NoSQL
Node.js
Oracle
VirtualBox
Container
Docker
Fedora
Java
Source Control
git
ExpressJS
MySQL
NuGet
Blogger
Blogging
Bower.js
Data Science
JSON
JavaEE
Web Api
DBMS
DevOps
HTML5
MVC
SPA
Storage
github
AJAX
Big Data
Design Pattern
Eclipse IDE
Elastic IP
GIMP
Graphics Design
Heroku
Linux Mint
Postman
R
SSL
Security
Visual Studio Code
ASP.NET MVC 4
CLI
Linux Commands
Powershell
Python
Server
Software Development
Subnets
Telerik
VPC
Windows Server 2016
angular-seed
font-awesome
log4net
servlets
tomcat
AWS CloudWatch
Active Directory
Angular
Blockchain
Collections
Compatibility
Cryptocurrency
DIgital Life
DNS
Downloads
Google Blogger
Google Chrome
Google Fonts
Hadoop
IAM
KnockoutJS
LINQ
Linux Performance
Logging
Mobile-First
Open Source
Prototype
R Programming
Responsive
Route 53
S3
SELinux
Software
Unix
View
Web Forms
WildFly
XML
cshtml
githu
Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.
ReplyDeleteSELENIUM TRAINING IN BANGALORE
good and thanks for your post for various blog for users intention. those who are looking to choose their carrer in cloud. they can prefer azure online training hyderabad this you can on azure training
ReplyDeleteI learned World's Trending Technology from certified experts for free of cost. I Got a job in decent Top MNC Company with handsome 14 LPA salary, I have learned the World's Trending Technology from Python training in pune experts who know advanced concepts which can help to solve any type of Real-time issues in the field of Python. Really worth trying instant approval blog commenting sites
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteI learned World's Trending Technology from certified experts for free of cost. I Got a job in decent Top MNC Company with handsome 14 LPA salary, I have learned the World's Trending Technology from hadoop training in btm experts who know advanced concepts which can help to solve any type of Real-time issues in the field of Hadoop. Really worth trying
ReplyDeleteYou have provided a nice article, Thank you very much for this one. And I hope this will be useful for many people. And I am waiting for your next post keep on updating these kinds of knowledgeable things
ReplyDeleteAndroid App Development Course in Chennai
Android Development Course in Bangalore
App Development Course in Coimbatore
Mobile Application Development Course in Coimbatore
I really appreciate for your blog post. we can get educated from your blog posts. this will be helpful to us hadoop online training hyderabad
ReplyDeleteIt is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful .web designing training in bangalore
ReplyDeleteSuch a great information for blogger i am a professional blogger thanks…
ReplyDeleteLooking for Best Training Institute in Bangalore , India. Softgen Infotech is the best one to offers 85+ computer training courses including IT Software Course in Bangalore , India. Also it provides placement assistance service in Bangalore for IT.
Excellent post...very useful...
ReplyDeletepython training in chennai
internships in hyderabad for cse 2nd year students
online inplant training
internships for aeronautical engineering students
kaashiv infotech internship review
report of summer internship in c++
cse internships in hyderabad
python internship
internship for civil engineering students in chennai
robotics course in chennai
An internship arrangement will be offered by different progressions.internship in chennai for civil readiness can be useful for higher examinations of school understudies, school and polytechnic understudies. Internship training will improve future livelihood advancement.
ReplyDeleteThanks for sharing.I appreciate your efforts for producing such high quality content.Visit big data certification bangalore if you are looking for any big data related certification courses
ReplyDeleteNice Post...Thanks for shraing the information...
ReplyDeletepega training in bangalore
Well post thanks for sharing,...In recent day’s customer relationship play vital role to get good platform in business industry, Salesforce crm tool helps you to maintain your customer relationship enhancement.
ReplyDeleteMicrosoft Windows Azure Training | Online Course | Certification in chennai | Microsoft Windows Azure Training | Online Course | Certification in bangalore | Microsoft Windows Azure Training | Online Course | Certification in hyderabad | Microsoft Windows Azure Training | Online Course | Certification in pune
nice blog..
ReplyDeletejava training in chennai
java training in omr
aws training in chennai
aws training in omr
python training in chennai
python training in omr
selenium training in chennai
selenium training in omr
I am a regular reader of your blog and I find it really informative. Hope more Articles From You.Best Tableau Training Videos available Here.
ReplyDeletejava training in chennai
java training in tambaram
aws training in chennai
aws training in tambaram
python training in chennai
python training in tambaram
selenium training in chennai
selenium training in tambaram
Excellent post, From this post i got more detailed information, Thanks to share with us,
ReplyDeletehadoop training in chennai
hadoop training in porur
salesforce training in chennai
salesforce training in porur
c and c plus plus course in chennai
c and c plus plus course in porur
machine learning training in chennai
machine learning training in porur
It is amazing and wonderful to visit your site.
ReplyDeleteoracle training in chennai
oracle training in annanagar
oracle dba training in chennai
oracle dba training in annanagar
ccna training in chennai
ccna training in annanagar
seo training in chennai
seo training in annanagar
Excellent post...very useful...
ReplyDeleteacte chennai
acte complaints
acte reviews
acte trainer complaints
acte trainer reviews
acte velachery reviews complaints
acte tambaram reviews complaints
acte anna nagar reviews complaints
acte porur reviews complaints
acte omr reviews complaints
This blog is really helpful for me and got a basic knowledge in this topic. Waiting for more updates, kindly keep continuing.
ReplyDeleteMachine Learning Training in Hyderabad
Amazing post thanks for sharing.
ReplyDeleteData Science Training Institute in Bangalore
Data Science Certification Course in Bangalore
Amazing post you have done
ReplyDeleteGerman language classes in faridabad
German language classes in bangalore
German education consultants in india
Mua vé tại Aivivu, tham khảo
ReplyDeleteVé máy bay đi Mỹ
có chuyến bay từ mỹ về việt nam
lịch bay từ nhật về việt nam hôm nay
ve may bay tư duc ve viet nam
từ canada về việt nam quá cảnh ở đâu
mua vé máy bay từ hàn quốc về việt nam
ve may bay chuyen gia sang Viet Nam
Amazing Post. keep update more information.
ReplyDeleteSoftware Testing Course in Bangalore
Software Testing Course in Hyderabad
Hi, Thanks for sharing wonderful articles...
ReplyDelete<a href="https://www.dnaglobal.in”> CA in Rohini</a>
Great post. Thanks for sharing such a useful blog.
ReplyDeleteAndroid Training in Anna Nagar
Android Training in Chennai
ReplyDeleteA popular solution for creating cross-platform mobile apps is PhoneGap.An open-source framework for developing mobile applications was produced by Nitobi Software. It enables the creation of apps utilising HTML, JavaScript, and CSS by the developers. To learn more about PhoneGap, join phonegap course in chennai at FITA Academy.
phonegap course in chennai