Why not use a LDAP backend? Central user management is always a good thing<br><br><div class="gmail_quote">2009/6/18 Mika Pflüger <span dir="ltr">&lt;<a href="mailto:mail@mikapflueger.de">mail@mikapflueger.de</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
Am Mon, 25 May 2009 11:26:57 -0400<br>
schrieb Andy Figueroa &lt;<a href="mailto:figueroa@andyfigueroa.us">figueroa@andyfigueroa.us</a>&gt;:<br>
&gt; I, too, am a one-man IT department for a small school.<br>
&gt;<br>
&gt; With the included Linux/Unix tools, additional tools don&#39;t seem to be<br>
&gt; called for.  Here is the script that I use to populate a fresh<br>
&gt; install of Edubuntu with users.  This only shows two users, but my<br>
&gt; real script is 153 of users long.  it&#39;s just a bash/shell script that<br>
&gt; you run from the command line (as root, or with sudo, of course):<br>
&gt;<br>
&gt; #!/bin/sh<br>
&gt; useradd -m -G scanner,plugdev,audio,video,cdrom,games,fuse<br>
&gt; -s /bin/bash cfreeman useradd -m -G<br>
&gt; scanner,plugdev,audio,video,cdrom,games,fuse -s /bin/bash jbfreeman<br>
&gt; echo &quot;Run &#39;chpasswd &lt; pw2&#39; to establish initial password for new<br>
&gt; user.&quot;<br>
&gt;<br>
&gt; The second file (pw2) is just a text file listing users and their<br>
&gt; passwords like this:<br>
&gt;<br>
&gt; jbfreeman:notrealpw1<br>
&gt; cfreeman:notrealpw2<br>
I thought it might be annoying to have to maintain two files and the<br>
idea of using OpenOffice sounded quite nice, so I created a little<br>
python script to add Users from a CSV-file. You can find it at:<br>
<a href="http://www.mikapflueger.de/batchadd/" target="_blank">http://www.mikapflueger.de/batchadd/</a><br>
<br>
It would be nice if you could test this script (back<br>
up /etc/passwd, /etc/group and /etc/shadow first!) and tell me if I<br>
missed something.<br>
I think the issue with group memberships (groups<br>
scanner,plugdev,audio,video,cdrom,games,fuse) calls for a system wide<br>
solution: Just add<br>
gdm;*;*;Al0000-2400;scanner,plugdev,audio,video,cdrom,games,fuse<br>
to /etc/security/group.conf and all users logging in through gdm will<br>
be granted membership in all necessary groups.<br>
However, if this is not a solution for you, I could add a function to<br>
the script to provide a list of groups membership should be granted to.<br>
<br>
Any comments very appreciated.<br>
<br>
Cheers,<br>
<font color="#888888"><br>
Mika<br>
</font><br>--<br>
edubuntu-users mailing list<br>
<a href="mailto:edubuntu-users@lists.ubuntu.com">edubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/edubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/edubuntu-users</a><br>
<br></blockquote></div><br>