Re-user creation script

0 views
Skip to first unread message

ramkumar ramakrishnan

unread,
Dec 21, 2011, 10:02:31 PM12/21/11
to rootvg
Hi,

can anyone help me to find out this? I have task


In Linux
1. create a group called ftp. it already there ftp:50
2. open random passwd generator create set of users(5)
3. Fill it to excel 4. create a script for user creation

Test1 aX4aHaQI
Test2 tyI6LirH
Test3 kA7haDnI
Test4 Com0PixI
Test5 hY8EpoBA


--
!!!!!!!!!! RAMBO ROCKS !!!!!!!!!!!

With Warm Regards,
R.Ramkumar
HP : 9362888329
9941922430

Hemant Narayanan

unread,
Dec 23, 2011, 7:58:06 AM12/23/11
to ramkumar ramakrishnan, rootvg
Hi Ram,,

U can simply do it in a for loop itself.

#!/bin/bash
for i in user1 user2 user3 user4 user5
do
useradd $i
gpasswd -a $i ftp
done

> --
> This site is used to share all the UNIX Admin (AIX, HP, Linux and Sun
> Solaris) day to day activities.
> **********************************************************************************************
> To post to this group, send email to roo...@googlegroups.com
> To unsubscribe from this group, send email to
> rootvg+un...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/rootvg?hl=en?hl=en
>


--
Thanks & Regards

A D Hemant Narayanan

Chnai,India
Ph.No : +99625 63393

Reply all
Reply to author
Forward
0 new messages