• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

doc/H16-Sep-2003-725583

modules/H03-May-2022-

BUGSH A D29-Aug-2003259 65

CHANGESH A D30-Sep-20032.6 KiB7069

COPYINGH A D15-Jul-200117.6 KiB341281

CREDITSH A D29-Aug-2003127 43

INSTALLH A D15-Aug-2003619 1110

READMEH A D13-Sep-20033 KiB6249

REQUIREMENTSH A D15-Aug-2003555 1511

TODOH A D26-Jul-200390 32

list-sampleH A D26-Jul-200333 21

smbrepair.plH A D03-May-2022605 3121

userneu.plH A D03-May-20228.4 KiB343201

userquick.plH A D03-May-20227.1 KiB284170

README

1Userneu is a simple perl script to automate the creation of new user
2accounts. It parses a tab-separated list of account names, real names
3and school classes (I wrote it to faciliate creating user accounts on my
4school's server). As of version 1.34b this list can have an arbitrary
5number of fields as long as the username is in the first one. If you
6want to have more or less than three fields in the input file you also
7have to specify descriptors for these fields using the -D option (see
8below.)
9This package contains two different scripts, userneu.pl to create a
10whole batch of users and userquick.pl to create single users.
11
12It requires some perl modules in order to work, which are listed in
13REQUIREMENTS and shipped with the package.
14
15To get an idea of the scripts usage please refer to the script's manual
16page in the doc/ directory.
17
18If one of the usernames on the list is already in the passwd database
19the script can append random strings (1 or two characters) to the
20username until it finds one that doesn't exist yet. This is not the
21default behaviour and you have to enable it explicitly.
22
23This script has been tested on FreeBSD with perl 5.8.0 and perl 5.00503
24(which comes with FreeBSD by default). It should work with other perl
25versions as well.
26
27NetBSD support has been removed from 1.34 onwards as I found useradd(8)
28on NetBSD not to accept the password hashes created by the script when I
29tested it on a friend's NetBSD machine. As I currently do not have any
30spare NetBSD systems I could develop and test on I disabled it for now.
31If you need NetBSD support write it, send me a patch and I'll be happy
32to include it but personally I won't work on it until I find the time to
33install NetBSD on one of my test machines.
34
35Contributions are always welcome, just send them. If you have any
36questions regarding the script please be sure to have at least a basic
37understanding of how it works (Having read this README and the manual
38pages should be sufficient, but if you miss something in that
39documentation feel free to tell me so I can add it.)
40
41As of 1.38 I included smbrepair.pl, a script that parses the list of
42usernames and passwords output by userneu(8) and creates missing entries
43in smbpasswd(5). It can be useful if you forgot the -s switch when you
44ran userneu(8) or if you suffer from the samba account creation bug
45fixed in 1.38 (see CHANGES for details). smbrepair.pl is just a quick
46hack I wrote to clean up the mess the bug in userneu-1.36 left on the
47system I administrate, but it should work fine. If in doubt you might
48want to have a look at the source code before running it.
49
50Contact information:
51
52Johannes Grassler <johannes.grassler@freenet.de>
53
54My GPG key fingerprint:
55
56pub  1024D/1FCB4CF3 2002-07-03 Johannes Grassler <johannes.grassler@freenet.de>
57     Key fingerprint = 5CAF DF5C A5E8 69EA B7C9  2FD9 ADD9 6BF3 1FCB 4CF3
58
59Copyright (c) 2003 Johannes Grassler. All rights reserved. This program
60is free software; you can redistribute it and/or modify it under the
61terms of the GNU General Public License (GPL).
62