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:
4536
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:
Removing files and directories - rm
Program to calculate the area and perimeter of the rectangle
Which command display version of the UNIX?
How would u get online help of cat command?
Write a shell program to check whether a given string is palindrome or not.
How would u get today’s date?
Shell script which takes year as an input and displays whether it is leap year or not. If year is not provided then take current year as an input
Write a shell script to find sum of digits of a number
How would u display the hidden files?
Shell script to perform database operations for student data like view, add and delete records
Find the lines containing a number in a file
Write a menu driven program to display message, user name, terminal name, login date and time
Change file owner of group - chown
Give example of cut command?
Write a shell script to find how many terminals has this user logged in
Shell Script to make a menu driven calculator using case
Write a shell scripts that finds total no. of users and finds out how many of them are currently logged in.
Display file in column format
Wild cards and examples in unix
Convert first1.txt file to hidden file
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