LinuxQuestions.org
Review your favorite Linux distribution.
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 09-09-2008, 03:08 PM   #1
LinuxNewbie55
LQ Newbie
 
Registered: Sep 2008
Distribution: Linux Mint, Fedora 9,6, Ubunto, Business Edition Linux Server
Posts: 14

Rep: Reputation: 0
Cool usermod array script help


I am in the process of trying to figure out just how to write a usermod array script. I have 5 users that i need to add to one group. All attempts that i have made so far have done nothing but frustrate me. If anyone can help i would be more the grateful. Thank you so much.
 
Old 09-09-2008, 03:50 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by LinuxNewbie55 View Post
I am in the process of trying to figure out just how to write a usermod array script. I have 5 users that i need to add to one group. All attempts that i have made so far have done nothing but frustrate me. If anyone can help i would be more the grateful. Thank you so much.
What platform are you on? And are you trying to add them into an LDAP group, or into the /etc/groups file? What language are you trying to write this in? Can you post the script you've got, along with the errors, and we can try to help you....
 
Old 09-09-2008, 06:54 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Details, details, we need info
 
Old 09-09-2008, 11:16 PM   #4
LinuxNewbie55
LQ Newbie
 
Registered: Sep 2008
Distribution: Linux Mint, Fedora 9,6, Ubunto, Business Edition Linux Server
Posts: 14

Original Poster
Rep: Reputation: 0
Post hmm

well i can certainly try to give you all the info that i can...however remember i am new to this..so im not sure what a lapd group or whatever that is. what i can tell you is that i have 5 users who need to be added to 1 group.
 
Old 09-09-2008, 11:52 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
If its just for a local system, you can become root and add them to the appropriate entry in /etc/group, see
'man group'.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash Script Array index value Kedelfor Programming 10 04-29-2009 04:37 AM
shell script for usermod theonlymac Linux - Newbie 8 08-25-2008 01:06 AM
Array shell script pooppp Linux - Networking 6 08-01-2008 08:37 AM
script to read file into array STAGED Programming 4 01-27-2006 08:06 PM
shell script array problem rche3252 Programming 1 10-08-2003 11:43 PM

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

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