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
HTML5
MVC
SPA
Storage
github
AJAX
Big Data
Design Pattern
DevOps
Eclipse IDE
Elastic IP
GIMP
Graphics Design
Heroku
Postman
R
SSL
Security
Visual Studio Code
ASP.NET MVC 4
CLI
Linux Commands
Powershell
Python
Server
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
Software Development
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
IEEE Final Year Project centers make amazing deep learning final year projects ideas for final year students Final Year Projects for CSE to training and develop their deep learning experience and talents.
DeleteIEEE Final Year projects Project Centers in India are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes, while specialists like the enjoyment in interfering with innovation.
corporate training in chennai corporate training in chennai
corporate training companies in india corporate training companies in india
corporate training companies in chennai corporate training companies in chennai
I have read your blog its very attractive and impressive. I like it your blog. Digital Marketing Company in Chennai
Hi,
ReplyDeleteGood job & thank you very much for the new information, i learned something new. Very well written. It was sooo good to read and usefull to improve knowledge. Who want to learn this information most helpful. One who wanted to learn this technology IT employees will always suggest you take big data hadoop training in pune. Because big data hadoop course in pune is one of the best that one can do while choosing the course.
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
ReplyDeleteThis is really an awesome post, thanks for it. Keep adding more information to this.selenium training in bangalore
ReplyDeleteReally it was an awesome article,very interesting to read.You have provided an nice article,Thanks for sharing.coded ui training in bangalore
ReplyDeleteBeing new to the blogging world I feel like there is still so much to learn. Your tips helped to clarify a few things for me as well as giving.big data testing training in bangalore
ReplyDeleteLinking is very useful thing.you have really helped lots of people who visit blog and provide them use full information.mobile application testing training in bangalore
ReplyDeleteYour articles really impressed for me,because of all information so nice.manual testing training in bangalore
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.
Wonderful thanks for sharing an amazing idea. keep it...
ReplyDeleteLearn Best PEGA Training in Bangalore from Experts. Softgen Infotech offers the Best PegaTraining in Bangalore.100% Placement Assistance, Live Classroom Sessions, Only Technical Profiles, 24x7 Lab Infrastructure Support.
nice..
ReplyDeletehosting
india hosting
india web hosting
iran web hosting
technology 11 great image sites like imgur hosting
final year project dotnet server hacking what is web hosting
macao web hosting
inplant training in chennai
inplant training in chennai
inplant training in chennai for it.php
inplant training in chennai
ReplyDeleteinplant training in chennai
inplant training in chennai for it.php
chile web hosting
colombia web hosting
croatia web hosting
cyprus web hosting
bahrain web hosting
india web hosting
iran web hosting
Excellent post...
ReplyDeleteinplant training in chennai
inplant training in chennai
inplant training in chennai for it
Australia hosting
mexico web hosting
moldova web hosting
albania web hosting
andorra hosting
australia web hosting
denmark web hosting
Excellent post.....
ReplyDeleter programming training in chennai
internship in bangalore for ece students
inplant training for mechanical engineering students
summer internships in hyderabad for cse students 2019
final year project ideas for information technology
bba internship certificate
internship in bangalore for ece
internship for cse students in hyderabad
summer training for ece students after second year
robotics courses in chennai
Very Nice...
ReplyDeleteinternship in chennai for ece students with stipend
internship for mechanical engineering students in chennai
inplant training in chennai
free internship in pune for computer engineering students
internship in chennai for mca
iot internships
internships for cse students in
implant training in chennai
internship for aeronautical engineering students in bangalore
inplant training certificate
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
nice.....it is use full...
ReplyDeleteaeronautical internship in india
free internship in chennai for mechanical engineering student
architectural firms in chennai for internship
internship in coimbatore for eee
online internships for cse students
mechanical internship certificate
inplant training report
internships in hyderabad for cse
internship for mba students in chennai
internship in trichy for cse
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
python course in coimbatore
ReplyDeletejava course in coimbatore
python training in coimbatore
java training in coimbatore
php course in coimbatore
php training in coimbatore
android course in coimbatore
android training in coimbatore
datascience course in coimbatore
datascience training in coimbatore
ethical hacking course in coimbatore
ethical hacking training in coimbatore
artificial intelligence course in coimbatore
artificial intelligence training in coimbatore
digital marketing course in coimbatore
digital marketing training in coimbatore
embedded system course in coimbatore
embeddedsystem training in coimbatore
python course in coimbatore
ReplyDeletepython training in coimbatore
java course in coimbatore
java training in coimbatore
android course in coimbatore
android training in coimbatore
php course in coimbatore
php training in coimbatore
digital marketing course in coimbatore
digital marketing training in coimbatore
software testing course in coimbatore
software testing training in coimbatore
python course in coimbatore
ReplyDeletejava course in coimbatore
python training in coimbatore
java training in coimbatore
php course in coimbatore
php training in coimbatore
android course in coimbatore
android training in coimbatore
datascience course in coimbatore
datascience training in coimbatore
ethical hacking course in coimbatore
ethical hacking training in coimbatore
artificial intelligence course in coimbatore
artificial intelligence training in coimbatore
digital marketing course in coimbatore
digital marketing training in coimbatore
embedded system course in coimbatore
embeddedsystem training in coimbatore
python course in coimbatore
ReplyDeletepython training in coimbatore
java course in coimbatore
java training in coimbatore
android course in coimbatore
android training in coimbatore
php course in coimbatore
php training in coimbatore
digital marketing course in coimbatore
digital marketing training in coimbatore
software testing course in coimbatore
software testing training in coimbatore
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
I have express a few of the articles on your website now, and I really like your style of blogging. I added it to my favorite’s blog site list and will be checking back soon…
ReplyDeleteoracle training in chennai
oracle training in velachery
oracle dba training in chennai
oracle dba training in velachery
ccna training in chennai
ccna training in velachery
seo training in chennai
seo training in velachery
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 is the exact information I am been searching for, Thanks for sharing the required infos with the clear update and required points.
ReplyDeleteData Science Training in Hyderabad
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
Extraordinary Blog. Provides necessary information.
ReplyDeletebest selenium training center in chennai
best training institute for selenium in chennai
Great post. keep sharing such a worthy information.
ReplyDeleteAngularjs Training in Chennai
Learn AngularJs Online
Angularjs Training In Bangalore
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
This post is so interactive and informative.keep update more information...
ReplyDeleteAWS Training in Tnagar
AWS Training in Chennai
This post is so interactive and informative.keep update more information...
ccna Training in Tambaram
ccna course in Chennai
Hi, Thanks for sharing wonderful articles...
ReplyDelete<a href="https://www.dnaglobal.in”> CA in Rohini</a>
Great post. keep sharing such a worthy information.
ReplyDeleteQTP Online Training
Great post. Thanks for sharing such a useful blog.
ReplyDeleteAndroid Training in Anna Nagar
Android Training in Chennai
This concept is a good way to enhance knowledge. thanks for sharing…
ReplyDeletevisit us: -swhizz
our services: -
Salesforce
DevOps
aws
Testing