Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-01-2010, 01:54 PM   #1
LQ Newbie
Registered: Dec 2009
Posts: 11

Rep: Reputation: 0
Thumbs up redhat enterprise edition 5

How to add users in group in linux?
here i whan to ask one thing how can we create users who are already there how can we change to the user to group for example

# useradd king

# groupadd IT

HERE i had create one group IT and user king I want to add user king to the group IT how to do this thing

# useradd -G IT king
this is the wrong method here i am asking is that user name king is already created i want to add that user to IT group how to do this thing
Old 01-01-2010, 01:57 PM   #2
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297

The command
is there to add users and you can indeed give it several parameters like add to groups. But once a user is created if you want to change (modify) that user you'll have to use the command
Have a look at the man page:
man usermod
for the option you need.

Kind regards,




Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mount ftp filesystem in RedHat Enterprise edition 5 jackd1000 Red Hat 7 12-16-2008 02:12 PM
Once again problem installing REDHAT Linux 5 enterprise edition hassandit Red Hat 1 11-24-2008 03:06 AM
VI Editor on RedHat Enterprise Edition dhirajsharma Red Hat 2 11-12-2007 09:18 PM
commands in redhat enterprise 5 edition iron_michael86 Linux - General 1 06-13-2007 11:10 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:17 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration