Welcome -
Guest!
Login
/
Register Now
|
Search:
Home
Articles
Forum
Interview FAQ
Activities
News
Videos
Poll
Links
People
Groups
Unix / Linux / Ubuntu Articles
Submit Article
Home
»
Articles
»
Unix / Linux / Ubuntu
»
Commands
RSS Feeds
Add a new user login to the system - useradd
Posted By:
Alicia Hughes
Category:
Unix / Linux / Ubuntu
Views:
4276
This article explains about useradd command with an example in unix.
useradd command is used to add a new user login to the system in unix.
Syntax of useradd Command
useradd [-u uid] [-g gid] [-d dir] [-s shell] [c - comment] [-m] login
Example of useradd Command
Example 1 :
Add the user xinuosx to the system with a UID of 222, base directory /user/xinuosx, sbin/csh as its default shell, and a primary group of staff
useradd -u 222 -g staff /user/xinuosx -m -s /sbin/csh xinuosx
Share:
Previous Post:
Add a new group to the system - groupadd
Next Post:
Change login password and associated attributes - passwd
Didn't find what you were looking for? Find more on
Add a new user login to the system - useradd
Or get
search suggestion and latest updates
.
Alicia Hughes
author of Add a new user login to the system - useradd is from London,
United Kingdom
.
View All Articles
Related Articles and Code:
Add a new group to the system - groupadd
Write a menu driven program to display message, user name, terminal name, login date and time
Program to add a new node to the asscending order linked list
Program to add a new node at the end of linked list using recursion
Create an SQL statement that will generate a series of GRANT statements to five new users
Shell script to display all users names, or users names of a particular group, or name of users who are currently working in the system
Program to display menus like windows operating system and also can add as many as user want
Execute the command which display login name, the name of your terminal and date and time of since user logged in
Display your login name
How would you know name of the users who are login?
Change login password and associated attributes - passwd
Prolog program of login page
Error: "Unsupported Context Type" when trying to add new controller.
Write a class whose objects holds a current value and have a method to add that value, printing the new value
Write a class whose objects holds a current value and have a method to add that value, printing the new value
Store any five 8-bit data check if >30 then add 10 otherwise add 20
Program to read a character and display it on new line with user prompts initialized by constants.
Program to read a character and display it on new line with user prompts initialized by constants.
Program to read a character and display it on a new line
Program of reading data from one text file and writing in new text file
Other Interesting Articles in Unix / Linux / Ubuntu:
Write a shell script that accepts a string from the terminal and echo suitable message if it doesn’t have at least ten characters
To identify directory and executable file which command is used?
Removing files and directories - rm
Change file owner of group - chown
Combine two files to a single file
List all hidden files in current directory
Explain the command, which work as spelling checker?
Count no.of words in file abc?
Shell Script to separate the colon from the given item
Shell script to perform string replacement in a file and view the content of file
Program to count length of user input string
Write a shell program to find the sum of the series sum=1+1/2+...+1/n
Explain the difference between echo “$SHELL” and echo ‘$SHELL’
How to create a directory and remove a directory?
Shell script to measure size of a file
Shell Script to make a menu driven calculator using case
Navigation command in unix
How delete directory with files?
Change file mode access permission - chmod
Remove entire directory structure
Please enter your Comment
Comment should be atleast 30 Characters.
Please put code inside [Code] your code [/Code].
Please login to post comment
No Comment Found, Be the First to post comment!
Unix / Linux / Ubuntu
View All
Advance
Basics
Commands
Homework Help
Interview FAQ
Terms and Terminology
Assembly Language
Artificial Intelligence
C Programming
C++ Programming
Visual C++
OOAD
Cobol
Java
SQL Server
Asp.net MVC
Rest and WCF Services
Entity Framework
Knockout.Js
Networking
OOPs Concept
HTML
Dos
SQL
System Analysis & Design
Gadgets
Internet
CSS
Javascript
.Net Framework
Asp.net
C#
VB.Net
Python
Perl
Oracle
Software Engineering
RDBMS Terms
AJAX Framework
Design Pattern
UML
WPF
WCF
SEO
PowerShell
Visual Studio
WWF
BizTalk Server
Azure
General
Testing
Online Certifications
PHP
My SQL
LinQ
Project Management
Silverlight
XML
MS Office
Windows OS
DHTML
Sharepoint