Re: Perl Script Needed To Create The Home Drectories.

2008-08-20 Thread Brian Reichert
On Wed, Aug 20, 2008 at 12:07:02PM -0700, Jyotishmaan Ray wrote: > Depending on the Linux system's policies, executing a command like this: useradd -m -d /mnt/btech -c $encrypted_password -s $shell $user will: - create the UID in the password database - create a group ID in /etc/groups - ad

Re: Perl Script Needed To Create The Home Drectories.

2008-08-20 Thread Jyotishmaan Ray
From: Andrej Ricnik-Bay <[EMAIL PROTECTED]> Subject: Re: Perl Script Needed To Create The Home Drectories. To: "Marc Girod" <[EMAIL PROTECTED]>, "Perl-LDAP Mailing List" Date: Wednesday, August 20, 2008, 11:33 PM On 20/08/2008, Marc Girod <[EMAIL PROTECTED]>

Re: Perl Script Needed To Create The Home Drectories.

2008-08-20 Thread Andrej Ricnik-Bay
On 20/08/2008, Marc Girod <[EMAIL PROTECTED]> wrote: > But, questions like 'why is there a @ on line 4?' should be > acceptable. But you don't sign up for a power-sliding event and then ask the people there what those pedals are for ... ? > Marc Cheers, Andrej -- Please don't top post, and

Re: Perl Script Needed To Create The Home Drectories.

2008-08-20 Thread Jason A. Kates
Instead of creating the home directory as part of a batch job you might think of having the OS take care of it only when required. Under linux you might think of updating /etc/pam.d/system-auth and add this line: session required pam_mkhomedir.so skel=/etc/skel/ umask=0022 The users home

RE: Perl Script Needed To Create The Home Drectories.

2008-08-20 Thread Jyotishmaan Ray
Would appreciate you if provide some pointers in writing a script for creating some hundreds of home directories for each one of them.

Re: Perl Script Needed To Create The Home Drectories.

2008-08-20 Thread Marc Girod
Hi all, May I add my grain of salt? On Wed, Aug 20, 2008 at 3:20 AM, Vartak, Yash V <[EMAIL PROTECTED]> wrote: > You should not expect the community to write entire stuff for you, > the community is for programmers to help each other with genuine queries, > and not give ready made solutions. Gr

RE: Perl Script Needed To Create The Home Drectories.

2008-08-19 Thread Vartak, Yash V
Ray [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2008 1:35 AM To: perl-ldap@perl.org; Peter Karman Subject: Re: Perl Script Needed To Create The Home Drectories. Your script is not clear. Please provide step wise solution. I am a new bie in perl.   --- On Tue, 8/19/08, Peter Karman

Re: Perl Script Needed To Create The Home Drectories.

2008-08-19 Thread Jyotishmaan Ray
Your script is not clear. Please provide step wise solution. I am a new bie in perl.   --- On Tue, 8/19/08, Peter Karman <[EMAIL PROTECTED]> wrote: From: Peter Karman <[EMAIL PROTECTED]> Subject: Re: Perl Script Needed To Create The Home Drectories. To: [EMAIL PROTECTED], "p

Re: Perl Script Needed To Create The Home Drectories.

2008-08-19 Thread Jyotishmaan Ray
Is that possible to create the home directories- /mnt/btech/rollno    --- On Tue, 8/19/08, Jason A. Kates <[EMAIL PROTECTED]> wrote:

Re: Perl Script Needed To Create The Home Drectories.

2008-08-19 Thread Peter Karman
On 08/19/2008 11:46 AM, Jyotishmaan Ray wrote: > Dear All, > > I am a new bie in perl. I have to create the home directories of 424 students > in a server machine. > > The path of the home directory would be :- > > /mnt/btech/formatted-rollno. > > where formatted-rollno ="s08-1-5-097" > >

Perl Script Needed To Create The Home Drectories.

2008-08-19 Thread Jyotishmaan Ray
Dear All, I am a new bie in perl. I have to create the home directories of 424 students in a server machine. The path of the home directory would be :- /mnt/btech/formatted-rollno. where formatted-rollno ="s08-1-5-097" And the input file contains all the rollnos of 424 students. A sampl