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:
4426
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 to ask your name, program name and enrolement number and print it on the screen
Script to print all prime numbers from 1 to 300
Remove a directory - rmdir
Program to calculate the area and perimeter of the rectangle
Display information about all the current programs running
Convert first1.txt file to hidden file
Add a new group to the system - groupadd
Add a new user login to the system - useradd
Special files in unix
Explain two functionality of “mv” command with example?
Write a shell script to find the sum, the average and the product of the four integers entered
Write a shell program to count the characters, count the lines and the words in a particular file
Write a shell program to exchange the values of two variables
Shell script to perform operations like compare string, concatenate, find length, occurrence of word in a string and reverse a string
Write a script to count and report the number of entries in each subdirectory mentioned in the path, which is supplied as a command-line argument
write a script to delete zero sized files from a given directory (and all its subdirectories)
Find out how many users are currently working.
Find all lines in a file with words longer than 4 characters, assuming that words are separated by spaces except at the begining or end of line
Display your current working directory
Write a shell scripts that finds total no. of users and finds out how many of them are currently logged in.
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