bda's Journal http://use.perl.org/~bda/journal/ bda's use Perl Journal en-us use Perl; is Copyright 1998-2006, Chris Nandor. Stories, comments, journals, and other submissions posted on use Perl; are Copyright their respective owners. 2012-01-25T02:44:31+00:00 pudge pudge@perl.org Technology hourly 1 1970-01-01T00:00+00:00 bda's Journal http://use.perl.org/images/topics/useperl.gif http://use.perl.org/~bda/journal/ User admin modules http://use.perl.org/~bda/journal/18522?from=rss <p>Recently I've started getting more and more into automating tasks I do at work. Part of this is relates around some ideas I've had about shell use and ssh key generation, distribution, and keyhost networks.</p><p>I also recently started doing administration work for a free shell box service (metawire.org) and we need a nice way to distribute user accounts across some new machines we're getting in the next week or so.</p><p>So to implement the above, I need some way to easily manipulate user and group accounts on various flavors of UNIX. "Well," says I, I says, "I'll just check out CPAN. Surely, it being CPAN, which is for Perl, there will be many modules already written to deal with this stuff, since it much be such a common requirement."</p><p>My searching skills are either woefully pathetic, or there just isn't a nice generic module for dealing with user administration.</p><p>So I think, "Well, that's ok, I'll just start a nice generic module, write the OS-specific stuff I need, and other people can add stuff. Shouldn't be too hard."</p><p>So I look around some more, and discover and mdxi refers to as "one of the most spectacular abuses of CPAN and it's top-level namespace ever."</p><p>What the shizzy, yo:<br>http://search.cpan.org/~tbone/User-1.6/User.pm</p><p>That is 16 lines of code. I'm still pretty pissed about this.</p><p>So I suppose I'll just use "User::Accounts" or something along those lines. But really. What the hell?</p><p>rjbs pointed this out to me:<br>http://search.cpan.org/~vidul/Linux-usermod-0.3/usermod.pm</p><p>Seems okay for what it does, but not what I need, really.</p><p>So, whinging aside: Am I totally missing something incredibly obvious? It astounds me that there isn't a generic user admin package written, so I'm pretty sure I must just be being completely blind here.</p> bda 2004-04-28T04:39:32+00:00 journal