Hello Hendrik Boshoff,

Re: 360 student database.

If you have Open Office, a part of that suite is "Base" which is a database
program. You should be able to import your existing database as a comma
delimited file. If you have any problems let me know.

Best Wishes,

Larry J. Larsen
LARSEN INVESTIGATIONS
5034 Eaton Street
Los Angeles, CA  90042-1076
323-550-8504 Office
323-258-2919 Fax
[EMAIL PROTECTED]

Confidential, Privileged - Attorney Work Product



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, February 01, 2006 4:00 AM
To: edubuntu-devel@lists.ubuntu.com
Subject: edubuntu-devel Digest, Vol 9, Issue 1


Send edubuntu-devel mailing list submissions to
        edubuntu-devel@lists.ubuntu.com

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.ubuntu.com/mailman/listinfo/edubuntu-devel
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of edubuntu-devel digest..."


Today's Topics:

   1. Script required to create many user accounts (Hendrik Boshoff)
   2. Printing problem (Hendrik Boshoff)
   3. Re: Script required to create many user accounts
      (Dennis Kaarsemaker)


----------------------------------------------------------------------

Message: 1
Date: Tue, 31 Jan 2006 14:55:50 +0200
From: "Hendrik Boshoff" <[EMAIL PROTECTED]>
Subject: Script required to create many user accounts
To: <edubuntu-devel@lists.ubuntu.com>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain;       charset="us-ascii"

Hi

I have created a file with details of 360 children to whom I want to
give access to our Edubuntu lab. It is a comma separated variable with
the following fields:

  username, full name, password, group1, group2

Can someone help with a script to create these users in a batch, and
give them membership of both groups?

The passwords are based on a standard pattern including their birthday.
Not ideal, but I want to create a mailmerge letter to each containing
their particulars. They will be encouraged to choose their own password
once they have log'd on. (Is there a way to pre-expire a password?)

Thanks for any help.

Hendrik Boshoff
[EMAIL PROTECTED]




------------------------------

Message: 2
Date: Tue, 31 Jan 2006 15:12:14 +0200
From: "Hendrik Boshoff" <[EMAIL PROTECTED]>
Subject: Printing problem
To: <edubuntu-devel@lists.ubuntu.com>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain;       charset="us-ascii"

I connected an HP Laserjet 1000 to our Edubuntu server using a USB
cable. It was immediately detected by the system, and the drivers were
installed. However, it does not work.

The test page is reported as sent, but nothing happens on the printer.
The logfile of CUPS shows the page being processed by filters, and ends
with a message telling me "PID xxxx stopped with status 1!"

I have added myself to the group lp, but it does not help.

A similar problem has been reported on ubuntuforums.org, without any
response.

An older HP Laserjet 6L worked without any problems in a test setup, but
my current server does not have a parallel port!

Is there a problem with some printers in Breezy? Is there a patch or
workaround? Is it due to be fixed in Dapper? I suppose I have become
used to hardware Just Working, so this is a comedown.

Thanks

Hendrik Boshoff




------------------------------

Message: 3
Date: Tue, 31 Jan 2006 14:20:05 +0100
From: Dennis Kaarsemaker <[EMAIL PROTECTED]>
Subject: Re: Script required to create many user accounts
To: Hendrik Boshoff <[EMAIL PROTECTED]>
Cc: edubuntu-devel@lists.ubuntu.com
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"

On di, 2006-01-31 at 14:55 +0200, Hendrik Boshoff wrote:
> Hi
>
> I have created a file with details of 360 children to whom I want to
> give access to our Edubuntu lab. It is a comma separated variable with
> the following fields:
>
>   username, full name, password, group1, group2
>
> Can someone help with a script to create these users in a batch, and
> give them membership of both groups?
>
> The passwords are based on a standard pattern including their birthday.
> Not ideal, but I want to create a mailmerge letter to each containing
> their particulars. They will be encouraged to choose their own password
> once they have log'd on. (Is there a way to pre-expire a password?)

I use something like this for batch-adding, simply pipe the file into
it:

#!/bin/bash

while [ 0 ]; do
    read LINE
    USER=`echo $LINE | cut -f 1 -d ,`
    FULLNAME=`echo $LINE | cut -f 2 -d ,`
    PASSWORD=`echo $LINE | cut -f 3 -d ,`
    GROUP1=`echo $LINE | cut -f 4 -d ,`
    GROUP2=`echo $LINE | cut -f 5 -d ,`

    if [ x"$USER" == x ]; then
        break;
    fi

    # Generate password
    CHARS="qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890"
    SALT=""
    for I in seq 8; do
        SALT=${SALT}${CHARS:$((RANDOM % ${#CHARS})):1}
    done

    # Create user
    echo "Adding user '$USER, $FULLNAME'"
    adduser --disabled-password --gecos "$FULLNAME,,," $USER
    usermod -p `echo $PWD | mkpasswd --salt $SALT --hash md5 --stdin` $USER
    adduser $USER $GROUP1
    adduser $USER $GROUP2
done

--
Dennis K.
  - Linux for human beings: http://www.ubuntu.com
  - Linux voor iedereen:    http://www.ubuntu-nl.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url :
https://lists.ubuntu.com/archives/edubuntu-devel/attachments/20060131/0ab094
80/attachment-0001.pgp

------------------------------

--
edubuntu-devel mailing list
edubuntu-devel@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/edubuntu-devel


End of edubuntu-devel Digest, Vol 9, Issue 1
********************************************
BEGIN:VCARD
VERSION:2.1
N:Larsen;Larry;J.
FN:Larry J. Larsen
ORG:Larsen Investigations
NOTE;ENCODING=QUOTED-PRINTABLE:LARSEN INVESTIGATIONS=0D=0A =0D=0AStill providing excellent service in our s=
pecialties:=0D=0A =0D=0ACorporate Fraud =0D=0AWhite Collar Crime Defense =
=0D=0AJury Polling =0D=0AEnvironmental Litigation =0D=0AIdentifying, locatin=
g and interviewing witnesses =0D=0ABackground Investigations=0D=0ADefense In=
dustry Litigation=0D=0A=0D=0A
TEL;WORK;VOICE:(323) 550-8504
TEL;CELL;VOICE:(323) 580-7200
TEL;WORK;FAX:(323) 258-2919
ADR;WORK:;;5034 Eaton Street;Los Angeles;CA;90042-1076;United States of America
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:5034 Eaton Street=0D=0ALos Angeles, CA 90042-1076=0D=0AUnited States of Amer=
ica
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20051012T182512Z
END:VCARD
-- 
edubuntu-devel mailing list
edubuntu-devel@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/edubuntu-devel

Reply via email to