LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-01-2010, 12:54 PM   #1
javimd786
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, 12:57 PM   #2
EricTRA
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
Hello,

The command
Code:
useradd
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
Code:
usermod
Have a look at the man page:
Code:
man usermod
for the option you need.

Kind regards,

Eric
 
  


Reply

Tags
redhat



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 01:12 PM
Once again problem installing REDHAT Linux 5 enterprise edition hassandit Red Hat 1 11-24-2008 02:06 AM
VI Editor on RedHat Enterprise Edition dhirajsharma Red Hat 2 11-12-2007 08:18 PM
commands in redhat enterprise 5 edition iron_michael86 Linux - General 1 06-13-2007 10:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:12 AM.

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