edubuntu-devel Digest, Vol 9, Issue 1

Larry J. Larsen larsenl at sbcglobal.net
Wed Feb 1 17:01:41 UTC 2006


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
larsenl at sbcglobal.net

Confidential, Privileged - Attorney Work Product



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


Send edubuntu-devel mailing list submissions to
	edubuntu-devel at 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
	edubuntu-devel-request at lists.ubuntu.com

You can reach the person managing the list at
	edubuntu-devel-owner at lists.ubuntu.com

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" <hfvb at ing.rau.ac.za>
Subject: Script required to create many user accounts
To: <edubuntu-devel at lists.ubuntu.com>
Message-ID: <7DF4771270D8EA4D9AF9514B2D0B9F61E693EA at ing.ing.rau.ac.za>
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
hfvb at ing.rau.ac.za




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

Message: 2
Date: Tue, 31 Jan 2006 15:12:14 +0200
From: "Hendrik Boshoff" <hfvb at ing.rau.ac.za>
Subject: Printing problem
To: <edubuntu-devel at lists.ubuntu.com>
Message-ID: <7DF4771270D8EA4D9AF9514B2D0B9F61E693F9 at ing.ing.rau.ac.za>
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 <dennis at kaarsemaker.net>
Subject: Re: Script required to create many user accounts
To: Hendrik Boshoff <hfvb at ing.rau.ac.za>
Cc: edubuntu-devel at lists.ubuntu.com
Message-ID: <1138713606.25664.10.camel at mirage.kaarsemaker.net>
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 at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/edubuntu-devel


End of edubuntu-devel Digest, Vol 9, Issue 1
********************************************
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Larry J. Larsen.vcf
Type: text/x-vcard
Size: 817 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/edubuntu-devel/attachments/20060201/fb36bdc7/attachment.vcf>


More information about the edubuntu-devel mailing list