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:
4301
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:
Process in unix
Write a shell script to convert a file to lower case or upper case as specified by user.
Program to perform operations like Count char,words and lines of file, display file in reverse, change case and frequency of a particular word in file
Suppose four filenames are supplied then the first file should get copied into second file, the third file should get copied into four
Write a shell script to find the average of the numbers entered in command line
Write a shell program to count the characters, count the lines and the words in a particular file
Find the lines containing a number in a file
Display file in column format
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
Write a shell script, which will receive any number of filenames as arguments .The shell script should check whether such files already exist.
Calculate the gross salary
Menu driven program which has the options Contents of etc/passwd, List of the users who have logged in, Present working directory
Write a shell script to reverse a number supplied by a user.
Which command display version of the UNIX?
Write a shell script to find the smallest of three numbers
Display your login name
How would you know machine’s name in the network?
Find out how many users are currently working.
Add a new group to the system - groupadd
Print the calendar of December 2006
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