Welcome to UltratechHost Forum, Guest. Please take the time to register if you haven't, or click

Tags
Author: UltratechHost - Replies: 0 - Views: 3260
Guide to “useradd” Command in Linux [Part 1]
Hi,

In this thread we will be know how to add user in a Linux OS, Prior to that we need to be cleared that useradd/adduser command can only be executed using root previlages.

It has many options and they are:
--base-dir
--comment
--create-home
--defaults
--expiredate
--gid
--groups
--help
--home-dir
--inactive
--key
--no-create-home
--no-log-init
--non-unique
--no-user-group
--password
--root
--selinux-user
--shell
--skel
--system
--uid
--user-group

To add a new u
Author: UltratechHost - Replies: 0 - Views: 2677
Guide to “useradd” Command in Linux [Part 2]
Hello,

This post is about other option of useradd/adduser

Previous post: http://forums.ultratechhost.com/thread-208.html

Create a User with Specific Group ID
Similarly, every user has its own GID (Group Identification Number). We can create users with specific group ID’s as well with -g option or --gid option.

Here in this example, we will add a user ‘tarunika‘ with a specific UID and GID simultaneously with the help of ‘-u or --uid‘ and ‘-g
Author: UltratechHost - Replies: 0 - Views: 2575
Guide to “useradd” Command in Linux [Part 3]
Hello,

This thread is about special case for useradd command

Previous Posts:
Code:
http://forums.ultratechhost.com/thread-208.html
http://forums.ultratechhost.com/thread-209.html

Add a User with Specific Home Directory, Default Shell and Custom Comment

The following command will create a user ‘santa‘ with home directory ‘/var/www/santa‘, default shell /bin/bash and adds extra information about user.

[code]# useradd -m -d /var/www/santa -s /bin/bash -c "Santa Banta"