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:
4316
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:
Shell script to perform operations like display, list, make directory and copy, rename, delete, edit file
Program of calculator
Add a new group to the system - groupadd
Write a shell program to exchange the values of two variables
Write s shell script, which will receive any number of filenames as arguments. The shell script should check whether every argument is a file or a dir
Input mode command in unix
Shell Script to make a menu driven calculator using case
Rename a file from first1.txt to first2.txt
Compress and expand data - compress / uncompress
Move or Rename file and directories - mv
How to change permission of file as 644?
Find the lines containing a number in a file
Count no.of words in file abc?
Navigation command in unix
Filters in unix
Find all lines in a file with words longer than 4 characters, assuming that words are separated by spaces except at the beginning or end of line
Shell Script to delete the zero sized file using if and for
Write a shell program to count the characters, count the lines and the words in a particular file
Prepare a menu driven calculator
Write a shell script, which will receive any number of filenames as arguments .The shell script should check whether such files already exist.
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