LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-12-2006, 07:47 PM   #1
BlueStag
LQ Newbie
 
Registered: Mar 2005
Distribution: FC3, Suse
Posts: 2

Rep: Reputation: 0
Script for adding users


I need a script that can add users to a specified group...
pls help me..
ite urgent

Thanks in advance
BlueStag
 
Old 03-12-2006, 07:55 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Have a look at man usermod to see if that's all you need to do. You can use it to change the initial (-g option) and supplementary groups (-G option) for a user.

Do you have bulk updates that you want to do? If so, can you provide an example?
 
Old 03-14-2006, 08:36 PM   #3
BlueStag
LQ Newbie
 
Registered: Mar 2005
Distribution: FC3, Suse
Posts: 2

Original Poster
Rep: Reputation: 0
Post thnx

i have to give logins to 100 members in 1 group and there are 3 sets of such members..... as in 3 groups..
i lost the script which i had..
pls help me..

BlueStag
 
Old 03-14-2006, 09:40 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Do you have the newusers command installed on your system? It sounds like it can do what you need. Have a look at man newusers - it should tell you all you need to know.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding new users via Shell script coolfrog Linux - General 10 12-05-2010 10:47 AM
Shell script adding autostart gnome script Coolrunr Programming 3 01-01-2009 02:23 PM
adding users... Digital_Err0r Linux - General 1 03-31-2004 03:08 PM
bash script for adding multiple users pilipk01 Linux - Newbie 4 01-12-2004 10:05 PM
Script that would automate adding users zyft02 Linux - Newbie 4 02-25-2002 11:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:25 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