Nice--2 solutions for adding/removing users--and a friend wrote one for me as well makes 3.  Is there an online space where these &#39;local solutions&#39; could be placed and possibly developed?  Or at least they could each be given their own page on the ubuntu/edubuntu wiki.  If I had known about other people&#39;s work I wouldn&#39;t have bothered this friend with creating a new one.  What do you-all think?  Should we add a few pages to the edubuntu wiki?<br>
<br>About the comparison between CLI and GUI, all I&#39;ve got to say is that &#39;one man&#39;s meat is another man&#39;s poison&#39;.  While both CLI and GUI have their non-overlapping strengths, preference is not only based on the tool (and the task) but also in the hand that wields the tool.  While there&#39;s a certain joy for me in effectively using CLI, my hand <i>likes</i> GUI. :-)<br>
<br>David<br><br><div class="gmail_quote">On Wed, Jun 17, 2009 at 11:20 AM, Gerald Drouillard <span dir="ltr">&lt;<a href="mailto:gerrylist@drouillard.ca">gerrylist@drouillard.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On 6/17/2009 12:01 PM, Andy Figueroa wrote:<br>
&gt; I love good gui tools for managing users, but they are tedious and time<br>
&gt; consuming for making many changes, additions, or deletions.<br>
&gt;<br>
&gt; Depending on what user and group items are being managed, the most powerful<br>
&gt; tool for changing group permissions for established users is directly<br>
&gt; editing the /etc/group file as root using a text editor.<br>
&gt;<br>
&gt; Likewise, adding and deleting users is most expediently done by the<br>
&gt; administrator as root from the command line.  For adding many users at a<br>
&gt; time, a little shell script like that below makes my day.  This is an actual<br>
&gt; except from the script that I use:<br>
&gt;<br>
</div>Here is the one I use that seems a little easier....IMO:<br>
<br>
#!/bin/bash<br>
#list all users...<br>
#cut -d: -f1 /etc/passwd<br>
#space delimited file of users separated by line returns<br>
#groupadd student<br>
<br>
toLower() {<br>
     echo $1 | tr &quot;[:upper:]&quot; &quot;[:lower:]&quot;<br>
}<br>
toUpper() {<br>
     echo $1 | tr &quot;[:lower:]&quot; &quot;[:upper:]&quot;<br>
}<br>
logIt() {<br>
     echo $1<br>
     echo $1 &gt;&gt;log.txt<br>
}<br>
rm log.txt<br>
unixfile=unix_user_list.txt<br>
#Remove any CRLF&#39;s<br>
tr -d &quot;\015&quot; &lt; students.txt &gt; $unixfile<br>
cat $unixfile | \<br>
while read FIRSTNAME MIDDLE LASTNAME PASSWORD<br>
do<br>
     username=`toLower ${FIRSTNAME}.${LASTNAME}`<br>
     egrep &quot;^$username&quot; /etc/passwd &gt;/dev/null<br>
     if [ $? -eq 0 ]; then<br>
        logIt &quot;Exists: $username&quot;<br>
     else<br>
         homedir=/home/student/$username<br>
        xpass=`mkpasswd $PASSWORD`<br>
#       echo $username $PASSWORD $xpass<br>
         useradd -f 360 -d $homedir -c &quot;$FIRSTNAME $MIDDLE $LASTNAME&quot; -m<br>
-s /bin/bash -g student -G<br>
dialout,cdrom,floppy,audio,dip,plugdev,scanner -p $xpass &quot;$username&quot;<br>
        if [ $? -eq 0 ]; then<br>
            chmod 700 $homedir<br>
            logIt &quot;Added: $username $PASSWORD&quot;<br>
        else<br>
            logIt &quot;Error $?: ${username}&quot;<br>
        fi<br>
     fi<br>
done<br>
rm $unixfile<br>
<font color="#888888"><br>
<br>
--<br>
Regards<br>
--------------------------------------<br>
Gerald Drouillard<br>
Technology Architect<br>
Drouillard &amp; Associates, Inc.<br>
<a href="http://www.Drouillard.biz" target="_blank">http://www.Drouillard.biz</a><br>
</font><div><div></div><div class="h5"><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>
</div></div></blockquote></div><br>