LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 04: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, 04:50 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,933

Rep: Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692
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, 07:54 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Details, details, we need info
 
Old 09-10-2008, 12:16 AM   #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-10-2008, 12:52 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
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


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
Bash Script Array index value Kedelfor Programming 10 04-29-2009 05:37 AM
shell script for usermod theonlymac Linux - Newbie 8 08-25-2008 02:06 AM
Array shell script pooppp Linux - Networking 6 08-01-2008 09:37 AM
script to read file into array STAGED Programming 4 01-27-2006 09:06 PM
shell script array problem rche3252 Programming 1 10-09-2003 12:43 AM


All times are GMT -5. The time now is 06:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration