Hi, On Thu, 18 Jun 2009 08:37:47 +0200 Jorge Bianquetti <[email protected]> wrote: > Why not use a LDAP backend? Central user management is always a good > thing That's true if you have the possibility to have one server always running - a server to which all clients can connect. Unfortunately this is not always the case. However, you are right that it usually pays back quickly to have ldap for user management.
I wrote the script as some people seem to use scripts that wouldn't match my own needs (if I was forced to do user management "by hand"). Cheers, Mika > 2009/6/18 Mika Pflüger <[email protected]> > > > Hi, > > > > Am Mon, 25 May 2009 11:26:57 -0400 > > schrieb Andy Figueroa <[email protected]>: > > > 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 > > [email protected] > > Modify settings or unsubscribe at: > > https://lists.ubuntu.com/mailman/listinfo/edubuntu-users > > > > -- edubuntu-users mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users
