TECH SOLUTIONS

Click here to edit subtitle

Forums

Post Reply
Forum Home > Unix Learnings > Unix: Adding a user and a group

Sourav Gulati
Site Owner
Posts: 83

Adding a Group:

#addgroup group_name

Adding a User:

#useradd -m -g group_name -s /bin/bash user_name

Options:

-m: created home directory for a user i.e. /home/user_name .It will throw an error if this directory is already existing. Also, it wil create enviorment files for that user in this directory

-g: specifies the group in which user will be added

-s: specifies the default shell for the user


--


January 11, 2013 at 7:11 AM Flag Quote & Reply

You must login to post.