Edubuntu additions for small schools

Jorge Bianquetti jbianquetti at gmail.com
Thu Jun 18 07:37:47 BST 2009


Why not use a LDAP backend? Central user management is always a good thing

2009/6/18 Mika Pflüger <mail at mikapflueger.de>

> Hi,
>
> Am Mon, 25 May 2009 11:26:57 -0400
> schrieb Andy Figueroa <figueroa at andyfigueroa.us>:
> > I, too, am a one-man IT department for a small school.
> >
> > With the included Linux/Unix tools, additional tools don't seem to be
> > called for.  Here is the script that I use to populate a fresh
> > install of Edubuntu with users.  This only shows two users, but my
> > real script is 153 of users long.  it's just a bash/shell script that
> > you run from the command line (as root, or with sudo, of course):
> >
> > #!/bin/sh
> > useradd -m -G scanner,plugdev,audio,video,cdrom,games,fuse
> > -s /bin/bash cfreeman useradd -m -G
> > scanner,plugdev,audio,video,cdrom,games,fuse -s /bin/bash jbfreeman
> > echo "Run 'chpasswd < pw2' to establish initial password for new
> > user."
> >
> > The second file (pw2) is just a text file listing users and their
> > passwords like this:
> >
> > jbfreeman:notrealpw1
> > cfreeman:notrealpw2
> I thought it might be annoying to have to maintain two files and the
> idea of using OpenOffice sounded quite nice, so I created a little
> python script to add Users from a CSV-file. You can find it at:
> http://www.mikapflueger.de/batchadd/
>
> It would be nice if you could test this script (back
> up /etc/passwd, /etc/group and /etc/shadow first!) and tell me if I
> missed something.
> I think the issue with group memberships (groups
> scanner,plugdev,audio,video,cdrom,games,fuse) calls for a system wide
> solution: Just add
> gdm;*;*;Al0000-2400;scanner,plugdev,audio,video,cdrom,games,fuse
> to /etc/security/group.conf and all users logging in through gdm will
> be granted membership in all necessary groups.
> However, if this is not a solution for you, I could add a function to
> the script to provide a list of groups membership should be granted to.
>
> Any comments very appreciated.
>
> Cheers,
>
> Mika
>
> --
> edubuntu-users mailing list
> edubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/edubuntu-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/edubuntu-users/attachments/20090618/b80072fe/attachment.htm 


More information about the edubuntu-users mailing list