Go Back   Linux Forums by TotalPenguin! Get linux Help! > GUI Linux > Linux Applications

Linux Applications Discussion for Linux Software and Application releated issues.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-17-2007, 03:36 PM
erik
Guest
 
Posts: n/a
Default Add user to group in Linux

How do I add a user to a group in Linux/Unix from the console/shell prompt?
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 10-18-2007, 03:38 PM
Jordan's Avatar
Administrator
 
Join Date: Nov 2006
Posts: 570
Jordan is on a distinguished road
Default

To create a new group:
Code:
groupadd <groupname>
Example:
Code:
groupadd mygroup
To add users to a group:
Code:
useradd -G <groupname> username
The -G specifies "group"
Example:
Code:
useradd -G mygroup jordan
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kill a logged on User Jame Linux General 3 10-23-2007 05:44 PM
Kill specific user processes Lop Linux General 3 10-18-2007 03:45 PM
User-friendly Ark Linux 2007.1 sails out kernel Linux News 0 08-20-2007 10:25 PM
Wheel Group? Pan Linux Security 1 07-05-2007 03:24 AM


All times are GMT. The time now is 11:36 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.